1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 11:19:18 +01:00

Show the artist and album name in the title of the "Show fullsize" window.

Fixes issue 2119
This commit is contained in:
Scott Olson 2011-11-13 00:59:44 +00:00 committed by David Sansome
parent f6750202b1
commit ac1ce4cca4

View File

@ -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(