Commit 3757ba1e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Same for Bookmark Dialog Ref. #1374

parent 8b967203
...@@ -77,10 +77,12 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf ):QVLCFrame( _p_intf ) ...@@ -77,10 +77,12 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf ):QVLCFrame( _p_intf )
BUTTONACT( clearButton, clear() ); BUTTONACT( clearButton, clear() );
BUTTONACT( extractButton, extract() ); BUTTONACT( extractButton, extract() );
readSettings( "Bookmarks" );
} }
BookmarksDialog::~BookmarksDialog() BookmarksDialog::~BookmarksDialog()
{ {
writeSettings( "Bookmarks" );
} }
void BookmarksDialog::update() void BookmarksDialog::update()
......
...@@ -40,8 +40,12 @@ public: ...@@ -40,8 +40,12 @@ public:
instance = new BookmarksDialog( p_intf ); instance = new BookmarksDialog( p_intf );
return instance; return instance;
} }
static void killInstance()
{
if( instance ) delete instance;
instance = NULL;
}
virtual ~BookmarksDialog(); virtual ~BookmarksDialog();
static bool exists() { return ( instance != NULL ) ; }
private: private:
BookmarksDialog( intf_thread_t * ); BookmarksDialog( intf_thread_t * );
static BookmarksDialog *instance; static BookmarksDialog *instance;
......
...@@ -77,6 +77,7 @@ DialogsProvider::~DialogsProvider() ...@@ -77,6 +77,7 @@ DialogsProvider::~DialogsProvider()
MediaInfoDialog::killInstance(); MediaInfoDialog::killInstance();
MessagesDialog::killInstance(); MessagesDialog::killInstance();
ExtendedDialog::killInstance(); ExtendedDialog::killInstance();
BookmarksDialog::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