tag/Settings: add function IsTagEnabled() wrapping access to ignore_tag_items[]

This commit is contained in:
Max Kellermann
2015-08-24 10:52:08 +02:00
parent 7aaa4dda22
commit 60c077c790
5 changed files with 24 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ TagSet::InsertUnique(const Tag &tag,
if (!CheckUnique(type, tag, type, group_mask) &&
(type != TAG_ALBUM_ARTIST ||
ignore_tag_items[TAG_ALBUM_ARTIST] ||
!IsTagEnabled(TAG_ALBUM_ARTIST) ||
/* fall back to "Artist" if no "AlbumArtist" was found */
!CheckUnique(type, tag, TAG_ARTIST, group_mask)))
InsertUnique(tag, type, nullptr, group_mask);