Branch 'kolab/integration/4.13.0' - incidenceeditor-ng/incidencecategories.cpp

Christian Mollekopf mollekopf at kolabsys.com
Fri Oct 31 10:31:08 CET 2014


 incidenceeditor-ng/incidencecategories.cpp |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit e71ab95189a1952d39fc5bbbdf933eceb6d73ea6
Author: Christian Mollekopf <chrigi_1 at fastmail.fm>
Date:   Fri Oct 31 10:31:04 2014 +0100

    IncidenceEditor: only modify categories if they actually changed.

diff --git a/incidenceeditor-ng/incidencecategories.cpp b/incidenceeditor-ng/incidencecategories.cpp
index 8593d62..8d13d58 100644
--- a/incidenceeditor-ng/incidencecategories.cpp
+++ b/incidenceeditor-ng/incidencecategories.cpp
@@ -75,7 +75,9 @@ void IncidenceCategories::save( const KCalCore::Incidence::Ptr &incidence )
 
 void IncidenceCategories::save( Akonadi::Item &item )
 {
-  item.setTags(mSelectedTags);
+  if (item.tags() != mSelectedTags) {
+    item.setTags(mSelectedTags);
+  }
 }
 
 QStringList IncidenceCategories::categories() const




More information about the commits mailing list