CollectionModel: Don't append artist if song is compilation

This commit is contained in:
Jonas Kvinge 2024-07-14 20:21:08 +02:00
parent cdd7faa9bb
commit f4ec3ab379
1 changed files with 1 additions and 1 deletions

View File

@ -1316,7 +1316,7 @@ QString CollectionModel::ContainerKey(const GroupBy group_by, const Song &song,
}
// Make sure we distinguish albums by different artists if the parent group by is not including artist.
if (IsAlbumGroupBy(group_by) && !has_unique_album_identifier && !song.effective_albumartist().isEmpty()) {
if (IsAlbumGroupBy(group_by) && !has_unique_album_identifier && !song.is_compilation() && !song.effective_albumartist().isEmpty()) {
key.prepend(QLatin1Char('-'));
key.prepend(TextOrUnknown(song.effective_albumartist()));
has_unique_album_identifier = true;