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

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