From a5e35d986e1b45d8f6882d4d83f99b44f6cb6121 Mon Sep 17 00:00:00 2001 From: Thomas Frauendorfer Date: Sat, 22 Mar 2008 00:54:36 +0100 Subject: [PATCH] Added PlaylistChooser to PlaylistView's contextmenu --- src/playlist/playlistview.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp index 6aab894..8653490 100644 --- a/src/playlist/playlistview.cpp +++ b/src/playlist/playlistview.cpp @@ -200,11 +200,16 @@ PlaylistView::contextMenuEvent (QContextMenuEvent *e) qm.addSeparator (); + a= new QAction (tr ("Change Playlist"), this); + connect (a, SIGNAL (triggered ()), qobject_cast(parent ()), SLOT (openPlaylistChooser ())); + qm.addAction (a); + a = new QAction (tr ("Medialib browser"), this); // connect (a, SIGNAL (triggered ()), this, SLOT (showMlib ())); a->setEnabled(false); //FIXME: Disabled for now qm.addAction (a); + e->accept (); qm.exec (e->globalPos ()); }