From 35441d829ecb88499466b03fde2a0dd5063c5a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bara?= Date: Sun, 30 Jan 2011 20:17:09 +0000 Subject: [PATCH] fixed a bug where 'Show cover in full size' and 'Unset cover' actions were incorrectly being disabled in the 'Now playing' widget --- src/widgets/nowplayingwidget.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/widgets/nowplayingwidget.cpp b/src/widgets/nowplayingwidget.cpp index 772624d48..0781a9acc 100644 --- a/src/widgets/nowplayingwidget.cpp +++ b/src/widgets/nowplayingwidget.cpp @@ -362,12 +362,12 @@ void NowPlayingWidget::contextMenuEvent(QContextMenuEvent* e) { album_cover_choice_controller_->search_for_cover_action()->setEnabled(false); #endif - const bool art_is_set = - !metadata_.art_manual().isEmpty() && - metadata_.art_manual() != AlbumCoverLoader::kManuallyUnsetCover; + const bool art_is_not_set = + metadata_.art_manual() == AlbumCoverLoader::kManuallyUnsetCover + || (metadata_.art_automatic().isEmpty() && metadata_.art_manual().isEmpty()); - album_cover_choice_controller_->unset_cover_action()->setEnabled(art_is_set); - album_cover_choice_controller_->show_cover_action()->setEnabled(art_is_set); + album_cover_choice_controller_->unset_cover_action()->setEnabled(!art_is_not_set); + album_cover_choice_controller_->show_cover_action()->setEnabled(!art_is_not_set); menu_->popup(mapToGlobal(e->pos())); }