Commit 82484b2b authored by Eugen Geist's avatar Eugen Geist Committed by Jean-Baptiste Kempf

Update bookmark list before showing dialog.

Fixes #2100.

Override toggleVisible of BookmarkDialog to call update before using toggleVisible of QVLCFrame
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit b506e7db2cbd3cf8c7742efc59a6994fd2719477)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 69143b20
......@@ -278,3 +278,14 @@ void BookmarksDialog::activateItem( QModelIndex index )
input_Control( p_input, INPUT_SET_BOOKMARK, index.row() );
}
void BookmarksDialog::toggleVisible()
{
/* Update, to show existing bookmarks in case a new playlist
was opened */
if( !isVisible() )
{
update();
}
QVLCFrame::toggleVisible();
}
......@@ -35,6 +35,8 @@ class QPushButton;
class BookmarksDialog : public QVLCFrame, public Singleton<BookmarksDialog>
{
Q_OBJECT
public:
void toggleVisible();
private:
BookmarksDialog( intf_thread_t * );
virtual ~BookmarksDialog();
......
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