From 912bb069af517b9008867ea65828569daf7361fd Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 19 Oct 2020 21:05:59 +0200 Subject: [PATCH] Fix updating album cover to collection for edit tag dialog --- src/dialogs/edittagdialog.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/dialogs/edittagdialog.cpp b/src/dialogs/edittagdialog.cpp index 6bd239eaf..fcfc61251 100644 --- a/src/dialogs/edittagdialog.cpp +++ b/src/dialogs/edittagdialog.cpp @@ -721,13 +721,16 @@ void EditTagDialog::UpdateCoverOf(const Song &selected, const QModelIndexList &s // Now check if we have any other songs cached that share that artist and album (and would therefore be changed as well) for (int i = 0; i < data_.count(); ++i) { - if (i == sel.first().row()) // Already changed this one - continue; - Song *other_song = &data_[i].original_; - if (selected.artist() == other_song->artist() && selected.album() == other_song->album()) { - other_song->set_art_manual(cover_url); + if (i != sel.first().row()) { + Song *other_song = &data_[i].original_; + if (selected.effective_albumartist() == other_song->effective_albumartist() && selected.album() == other_song->album()) { + other_song->set_art_manual(cover_url); + } } + + data_[i].current_.set_art_manual(data_[i].original_.art_manual()); + } }