diff options
author | Arno <arno@disconnect.de> | 2018-02-19 02:08:54 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-02-19 02:08:54 +0100 |
commit | 164701b69d3d84b5530e93866dea93b446654a8e (patch) | |
tree | b76a99d7d453e1b44557f1a5943f3a23af5a6a92 /playerwidget.cpp | |
parent | 1789930645650d9302b484cf21317e606e8f14e8 (diff) | |
download | BeetPlayer-164701b69d3d84b5530e93866dea93b446654a8e.tar.gz BeetPlayer-164701b69d3d84b5530e93866dea93b446654a8e.tar.bz2 BeetPlayer-164701b69d3d84b5530e93866dea93b446654a8e.zip |
Add "remove from Favorites"
Implemented as a custom action. Works out fine so far :)
Diffstat (limited to 'playerwidget.cpp')
-rw-r--r-- | playerwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/playerwidget.cpp b/playerwidget.cpp index d34b954..bb8509a 100644 --- a/playerwidget.cpp +++ b/playerwidget.cpp @@ -208,6 +208,7 @@ void PlayerWidget::setupGui(QSplashScreen *splash){ QAction *searchMBA = new QAction(QIcon(":/bizarre_amputee.png"), tr("Search Musicbrainz"), this); connect(searchMBA, &QAction::triggered, [this, curW] { searchMusicbrainz(curW->view()->selectionModel()->currentIndex()); }); curW->view()->addAction(searchMBA); + curW->view()->addActions(curW->customActions()->actions()); } } QAction *gotoAlbumA = new QAction(QIcon(":/next.png"), tr("Goto album"), this); |