[Digikam-devel] [Bug 136260] Awkward management of metadata and digikam-tags and comments
Gilles Caulier
caulier.gilles at free.fr
Wed Oct 25 08:01:08 BST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=136260
------- Additional Comments From caulier.gilles free fr 2006-10-25 09:01 -------
SVN commit 598955 by cgilles:
digikam from trunk : KipiInterface : if a kipi-plugin change pictures metadata, use libkipi::Interface::refreshImages() to update sidebar Metadata contents.
Important: Marcel, this way do not yet update database contents accordinly with metadata contents (Tags/Rating/date/comments <==> EXIF/IPTC) from an existing item in picture collections. This requires more indeep changes in Digikam::Scanlib and digikam::AlbumDB class. We need to discut about these changes together.
CCMAIL: marcel.wiesweg gmx de
CCBUGS: 136260, 136258, 136256
M +8 -2 kipiinterface.cpp
--- trunk/extragear/graphics/digikam/digikam/kipiinterface.cpp #598954:598955
@ -62,6 +62,7 @
#include "dmetadata.h"
#include "imageattributeswatch.h"
#include "kipiinterface.h"
+#include "kipiinterface.moc"
namespace Digikam
{
@ -597,6 +598,13 @
void DigikamKipiInterface::refreshImages( const KURL::List& urls )
{
+ KURL::List ulist = urls;
+
+ // Re-scan metadata from pictures. This way will update Metadata sidebar and database.
+ for ( KURL::List::Iterator it = ulist.begin() ; it != ulist.end() ; ++it )
+ ImageAttributesWatch::instance()->fileMetadataChanged(*it);
+
+ // Refresh preview.
albumManager_->refreshItemHandler(urls);
}
@ -685,5 +693,3 @
} // namespace Digikam
-#include "kipiinterface.moc"
-
More information about the Digikam-devel
mailing list