Commit 8b967203 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt4 - Save Extended panel size/pos in the good way. Ref #1374.

parent 05a412e4
......@@ -85,11 +85,8 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
readSettings( "EPanel", QSize( 400, 280 ), QPoint( 450, 0 ) );
}
void ExtendedDialog::savingSettings()
ExtendedDialog::~ExtendedDialog()
{
writeSettings( "EPanel" );
}
ExtendedDialog::~ExtendedDialog()
{}
......@@ -36,9 +36,12 @@ public:
instance = new ExtendedDialog( p_intf );
return instance;
}
static void killInstance()
{
if( instance ) delete instance;
instance = NULL;
}
virtual ~ExtendedDialog();
static bool exists(){ return ( instance != NULL ) ; }
void savingSettings();
private:
ExtendedDialog( intf_thread_t * );
static ExtendedDialog *instance;
......
......@@ -76,6 +76,7 @@ DialogsProvider::~DialogsProvider()
PlaylistDialog::killInstance();
MediaInfoDialog::killInstance();
MessagesDialog::killInstance();
ExtendedDialog::killInstance();
fixed_timer->stop();
}
......
......@@ -273,8 +273,6 @@ MainInterface::~MainInterface()
msg_Dbg( p_intf, "Destroying the main interface" );
if( playlistWidget ) playlistWidget->savingSettings( settings );
if( ExtendedDialog::exists() )
ExtendedDialog::getInstance( p_intf )->savingSettings();
settings->beginGroup( "MainWindow" );
// settings->setValue( "playlist-floats", (int)(dockPL->isFloating()) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment