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