From 70545ab47b7ae61fb4358a6fc6f33e9c423ceea5 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 17 Feb 2018 20:45:29 +0100 Subject: 2 Bugfixes: Trigger QAction for first stacked view and make viewByFoldersA checkable. --- playerwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playerwidget.cpp b/playerwidget.cpp index e01014a..e092b3b 100644 --- a/playerwidget.cpp +++ b/playerwidget.cpp @@ -150,6 +150,7 @@ void PlayerWidget::setupGui(QSplashScreen *splash){ foldersView->populate(); cIdx = mCollectionStack->addWidget(foldersView); QAction *viewByFoldersA = new QAction(QIcon(":/folder.png"), tr("View by folder"), this); + viewByFoldersA->setCheckable(true); connect(viewByFoldersA, &QAction::triggered, [this, cIdx] { mCollectionStack->setCurrentIndex(cIdx); }); bottomTBG->addAction(viewByFoldersA); for(QAction *a : bottomTBG->actions()){ @@ -290,6 +291,7 @@ void PlayerWidget::setupGui(QSplashScreen *splash){ QVBoxLayout *mainLayout = new QVBoxLayout; mainLayout->addWidget(splitter); setLayout(mainLayout); + viewByArtistsA->trigger(); } void PlayerWidget::createActions(){ -- cgit v1.2.3-70-g09d2