From f4ec3ab379d3e05477e563f0c89c7fb1f516e4e1 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 14 Jul 2024 20:21:08 +0200 Subject: [PATCH] CollectionModel: Don't append artist if song is compilation --- src/collection/collectionmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collection/collectionmodel.cpp b/src/collection/collectionmodel.cpp index dd8bafb8..7d481df0 100644 --- a/src/collection/collectionmodel.cpp +++ b/src/collection/collectionmodel.cpp @@ -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;