diff options
author | Max Kellermann <max@duempel.org> | 2015-08-24 10:52:08 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-08-24 11:20:45 +0200 |
commit | 60c077c79076f50317a4637b65c69bff3df134a7 (patch) | |
tree | b40d1b0a7951b27a87eed3dcdc861127ea3662b2 /src/db/plugins | |
parent | 7aaa4dda2261f416478a9987ce25b46929c60957 (diff) | |
download | mpd-60c077c79076f50317a4637b65c69bff3df134a7.tar.gz mpd-60c077c79076f50317a4637b65c69bff3df134a7.tar.xz mpd-60c077c79076f50317a4637b65c69bff3df134a7.zip |
tag/Settings: add function IsTagEnabled() wrapping access to ignore_tag_items[]
Diffstat (limited to '')
-rw-r--r-- | src/db/plugins/simple/DatabaseSave.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/plugins/simple/DatabaseSave.cxx b/src/db/plugins/simple/DatabaseSave.cxx index 36e310bc9..02690dcf8 100644 --- a/src/db/plugins/simple/DatabaseSave.cxx +++ b/src/db/plugins/simple/DatabaseSave.cxx @@ -58,7 +58,7 @@ db_save_internal(BufferedOutputStream &os, const Directory &music_root) os.Format("%s%s\n", DIRECTORY_FS_CHARSET, GetFSCharset()); for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; ++i) - if (!ignore_tag_items[i]) + if (IsTagEnabled(i)) os.Format(DB_TAG_PREFIX "%s\n", tag_item_names[i]); os.Format("%s\n", DIRECTORY_INFO_END); @@ -142,7 +142,7 @@ db_load_internal(TextFile &file, Directory &music_root, Error &error) } for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; ++i) { - if (!ignore_tag_items[i] && !tags[i]) { + if (IsTagEnabled(i) && !tags[i]) { error.Set(db_domain, "Tag list mismatch, " "discarding database file"); |