Commit 693e8393 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt4 - Save Message Dialog position and Size on quit. use it on load. Ref #1374

parent 9e4975ec
......@@ -74,10 +74,8 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
BUTTONACT( clearButton, clear() );
BUTTONACT( saveLogButton, save() );
ON_TIMEOUT( updateLog() );
}
MessagesDialog::~MessagesDialog()
{
readSettings( "Messages" );
}
void MessagesDialog::updateLog()
......
......@@ -42,7 +42,13 @@ public:
instance = new MessagesDialog( p_intf );
return instance;
}
virtual ~MessagesDialog();
static void killInstance()
{
if( instance ) delete instance;
instance = NULL;
}
virtual ~MessagesDialog(){ writeSettings( "messages" ); };
private:
MessagesDialog( intf_thread_t * );
......
......@@ -72,8 +72,10 @@ DialogsProvider::DialogsProvider( intf_thread_t *_p_intf ) :
DialogsProvider::~DialogsProvider()
{
msg_Dbg( p_intf, "Destroying the Dialog Provider" );
PlaylistDialog::killInstance();
MediaInfoDialog::killInstance();
MessagesDialog::killInstance();
fixed_timer->stop();
}
......
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