mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 03:45:56 +01:00
Show the artist and album name in the title of the "Show fullsize" window.
Fixes issue 2119
This commit is contained in:
parent
f6750202b1
commit
ac1ce4cca4
@ -186,7 +186,16 @@ QString AlbumCoverChoiceController::UnsetCover(Song* song) {
|
|||||||
void AlbumCoverChoiceController::ShowCover(const Song& song) {
|
void AlbumCoverChoiceController::ShowCover(const Song& song) {
|
||||||
QDialog* dialog = new QDialog(this);
|
QDialog* dialog = new QDialog(this);
|
||||||
dialog->setAttribute(Qt::WA_DeleteOnClose, true);
|
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);
|
QLabel* label = new QLabel(dialog);
|
||||||
label->setPixmap(AlbumCoverLoader::TryLoadPixmap(
|
label->setPixmap(AlbumCoverLoader::TryLoadPixmap(
|
||||||
|
Loading…
Reference in New Issue
Block a user