Only show 'Show artist images' when applicable

This commit is contained in:
Craig Drummond
2017-12-17 13:21:49 +00:00
committed by Craig Drummond
parent e743dd48f5
commit 724ca494e7

View File

@@ -95,7 +95,7 @@ LibraryPage::LibraryPage(QWidget *p)
connect(showArtistImagesAction, SIGNAL(toggled(bool)), this, SLOT(showArtistImagesChanged(bool)));
albumAlbumSortAction->setVisible(SqlLibraryModel::T_Album==MpdLibraryModel::self()->topLevel());
libraryAlbumSortAction->setVisible(SqlLibraryModel::T_Album!=MpdLibraryModel::self()->topLevel());
showArtistImagesAction->setVisible(SqlLibraryModel::T_Album!=MpdLibraryModel::self()->topLevel());
showArtistImagesAction->setVisible(SqlLibraryModel::T_Album!=MpdLibraryModel::self()->topLevel() && ItemView::Mode_IconTop!=view->viewMode());
genreCombo->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
init(ReplacePlayQueue|AppendToPlayQueue, QList<QWidget *>() << menu << genreCombo);
connect(genreCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(doSearch()));