From ac1ce4cca44951dee370620f4e23a2567158473b Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Sun, 13 Nov 2011 00:59:44 +0000 Subject: [PATCH] Show the artist and album name in the title of the "Show fullsize" window. Fixes issue 2119 --- src/ui/albumcoverchoicecontroller.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ui/albumcoverchoicecontroller.cpp b/src/ui/albumcoverchoicecontroller.cpp index c20760bd6..1650c5171 100644 --- a/src/ui/albumcoverchoicecontroller.cpp +++ b/src/ui/albumcoverchoicecontroller.cpp @@ -186,7 +186,16 @@ QString AlbumCoverChoiceController::UnsetCover(Song* song) { void AlbumCoverChoiceController::ShowCover(const Song& song) { QDialog* dialog = new QDialog(this); dialog->setAttribute(Qt::WA_DeleteOnClose, true); - dialog->setWindowTitle(song.title()); + + // Use Artist - Album as the window title + QString title_text(song.albumartist()); + if (title_text.isEmpty()) + title_text = song.artist(); + + if (!song.album().isEmpty()) + title_text += " - " + song.album(); + + dialog->setWindowTitle(title_text); QLabel* label = new QLabel(dialog); label->setPixmap(AlbumCoverLoader::TryLoadPixmap(