From 164701b69d3d84b5530e93866dea93b446654a8e Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 19 Feb 2018 02:08:54 +0100 Subject: Add "remove from Favorites" Implemented as a custom action. Works out fine so far :) --- playerwidget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'playerwidget.cpp') 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); -- cgit v1.2.3-70-g09d2