1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-07 05:42:52 +01:00

Fix updating album cover to collection for edit tag dialog

This commit is contained in:
Jonas Kvinge 2020-10-19 21:05:59 +02:00
parent 6b2d7a67d8
commit 912bb069af

View File

@ -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) // 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) { 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 (i != sel.first().row()) {
if (selected.artist() == other_song->artist() && selected.album() == other_song->album()) { Song *other_song = &data_[i].original_;
other_song->set_art_manual(cover_url); 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());
} }
} }