[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kipi-plugins] gpssync: Use edit hints in the GPS plugin (metadata change only writes out data which
From: Marcel Wiesweg <marcel.wiesweg () gmx ! de>
Date: 2014-06-30 21:02:59
Message-ID: E1X1ij5-0004d9-1B () scm ! kde ! org
[Download RAW message or body]
Git commit 355e66202d4d1a6136f7a63b476a726189138a7a by Marcel Wiesweg.
Committed on 29/04/2013 at 19:45.
Pushed by mwiesweg into branch 'master'.
Use edit hints in the GPS plugin (metadata change only writes out data which is also
communicated via attributes; the host need not do anything with the changed files)
M +8 -1 gpssync/kipiimageitem.cpp
http://commits.kde.org/kipi-plugins/355e66202d4d1a6136f7a63b476a726189138a7a
diff --git a/gpssync/kipiimageitem.cpp b/gpssync/kipiimageitem.cpp
index bf6441f..0f9e029 100644
--- a/gpssync/kipiimageitem.cpp
+++ b/gpssync/kipiimageitem.cpp
@@ -837,11 +837,18 @@ QString KipiImageItem::saveChanges(const bool toInterface, const bool toFile)
if (success)
{
- success = meta->save(m_url.path());
+ #if KIPI_VERSION >= 0x020100
+ EditHintScope editHintScope(m_interface, m_url.toLocalFile(), HintMetadataOnlyChange);
+ #endif
+
+ success = meta->save(m_url.toLocalFile());
if (!success)
{
returnString = i18n("Unable to save changes to file");
+ #if KIPI_VERSION >= 0x020100
+ editHintScope.changeAborted();
+ #endif
}
else
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic