mirror of
https://github.com/taglib/taglib.git
synced 2025-07-19 13:34:19 -04:00
Fix up the stuff here for appending values to an APE::Item and round out the API a bit.
Based on Michael's patch... BUG:120256 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@503255 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -186,7 +186,7 @@ void APE::Tag::addValue(const String &key, const String &value, bool replace)
|
||||
removeItem(key);
|
||||
if(!value.isEmpty()) {
|
||||
if(d->itemListMap.contains(key) || !replace)
|
||||
d->itemListMap[key.upper()].toStringList().append(value);
|
||||
d->itemListMap[key.upper()].appendValue(value);
|
||||
else
|
||||
setItem(key, Item(key, value));
|
||||
}
|
||||
|
Reference in New Issue
Block a user