summaryrefslogtreecommitdiffstats
path: root/playerwidget.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-02-19 02:08:54 +0100
committerArno <arno@disconnect.de>2018-02-19 02:08:54 +0100
commit164701b69d3d84b5530e93866dea93b446654a8e (patch)
treeb76a99d7d453e1b44557f1a5943f3a23af5a6a92 /playerwidget.cpp
parent1789930645650d9302b484cf21317e606e8f14e8 (diff)
downloadBeetPlayer-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.cpp1
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);