[Kde-imaging] [kipiplugins] [Bug 342857] New: Changed files are not reported to host application

Johannes Zarl johannes at zarl.at
Thu Jan 15 00:03:25 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=342857

            Bug ID: 342857
           Summary: Changed files are not reported to host application
           Product: kipiplugins
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: GPSSync
          Assignee: kde-imaging at kde.org
          Reporter: johannes at zarl.at

The GPSSync plugin should call KIPI::interface::refreshFiles() for those files
that have been changed on disk. KPhotoAlbum relies on MD5sums to detect file
renaming. This can't work properly if the files are changed without its
knowledge.

A fix could possibly look like this:

diff --git a/gpssync/kipiimageitem.cpp b/gpssync/kipiimageitem.cpp
index 0f9e029..63ff1e4 100644
--- a/gpssync/kipiimageitem.cpp
+++ b/gpssync/kipiimageitem.cpp
@@ -881,6 +881,12 @@ QString KipiImageItem::saveChanges(const bool toInterface,
const bool toFile)
             info.removeGeolocationInfo();
         }

+        if (shouldWriteCoordinates | shouldRemoveCoordinates)
+        {
+            // if data was written to the file, the interface must be notified
of the changed checksum
+            m_interface->refreshImages(KUrl::List(m_url));
+        }
+
         if (!m_tagList.isEmpty())
         {
             QMap<QString, QVariant> attributes;

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-imaging mailing list