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:
Scott Wheeler
2006-01-28 15:18:31 +00:00
parent 4841a5c39c
commit 99fbe7ff25
3 changed files with 67 additions and 1 deletions

View File

@ -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));
}