[Digikam-devel] [digikam] [Bug 268688] Write metadata to all images does not remove obsolete tags
Gilles Caulier
caulier.gilles at gmail.com
Tue Aug 27 15:20:08 BST 2013
https://bugs.kde.org/show_bug.cgi?id=268688
--- Comment #49 from Gilles Caulier <caulier.gilles at gmail.com> ---
Git commit e15b54f988db686994dea2c1711d80dbf5c8c45d by Veaceslav Munteanu.
Committed on 27/08/2013 at 17:14.
Pushed by munteanu into branch 'master'.
BUG: 268688 Disable read of old tag paths and use setXmpTagStringBag in
dmetadata
M +1 -1 digikam/fileaction/metadatahub.cpp
M +1 -1 libs/dmetadata/dmetadata.cpp
http://commits.kde.org/digikam/e15b54f988db686994dea2c1711d80dbf5c8c45d
diff --git a/digikam/fileaction/metadatahub.cpp
b/digikam/fileaction/metadatahub.cpp
index 115104a..6cb67c8 100644
--- a/digikam/fileaction/metadatahub.cpp
+++ b/digikam/fileaction/metadatahub.cpp
@@ -709,7 +709,7 @@ bool MetadataHub::write(DMetadata& metadata, WriteMode
writeMode, const Metadata
// create list of keywords to be added and to be removed
QStringList tagsPathList, oldKeywords, newKeywords;
- metadata.getImageTagsPath(tagsPathList);
+ //metadata.getImageTagsPath(tagsPathList);
for (QMap<int, TagStatus>::iterator it = d->tags.begin(); it !=
d->tags.end(); ++it)
{
diff --git a/libs/dmetadata/dmetadata.cpp b/libs/dmetadata/dmetadata.cpp
index c465572..e8abb6a 100644
--- a/libs/dmetadata/dmetadata.cpp
+++ b/libs/dmetadata/dmetadata.cpp
@@ -3037,7 +3037,7 @@ QStringList DMetadata::getXmpKeywords() const
bool DMetadata::setXmpKeywords(const QStringList& newKeywords, bool
setProgramName) const
{
- return addToXmpTagStringBag("Xmp.dc.subject", newKeywords,
setProgramName);
+ return setXmpTagStringBag("Xmp.dc.subject", newKeywords, setProgramName);
}
bool DMetadata::removeXmpKeywords(const QStringList& keywordsToRemove, bool
setProgramName)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel
mailing list