[evolution-kolab] EPlugin: write ACL to server only if changed



commit df6a0ea3102031e75a45b7dd6a052b98e2937546
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Mon Oct 15 19:12:05 2012 +0200

    EPlugin: write ACL to server only if changed
    
    * let the CamelKolabIMAPXStore write the
      ACL to the selected folder only if we
      had a change
    * this is no true diff'ing yet (for which
      we would need to keep around a copy of
      the original ACL to see whether anything
      really changed after the editor dialog
      is closed)

 src/eplugin/e-kolab-folder-permissions.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/eplugin/e-kolab-folder-permissions.c b/src/eplugin/e-kolab-folder-permissions.c
index 05f2ccc..227a3da 100644
--- a/src/eplugin/e-kolab-folder-permissions.c
+++ b/src/eplugin/e-kolab-folder-permissions.c
@@ -463,6 +463,7 @@ kolab_folder_permissions_ui_update_from_dialog (KolabFolderPermUIData *uidata,
 
 	/* update treeview */
 	kolab_folder_permissions_ui_update_treeview (uidata);
+	uidata->changed = TRUE;
 }
 
 static void
@@ -777,6 +778,7 @@ kolab_folder_permissions_ui_acl_remove_cb (KolabFolderPermUIData *uidata)
 	/* update treeview */
 	if (ok) {
 		kolab_folder_permissions_ui_update_treeview (uidata);
+		uidata->changed = TRUE;
 	}
 }
 
@@ -1101,6 +1103,12 @@ e_kolab_folder_permissions_ui_write_store (KolabFolderPermUIData *uidata,
 		ok = FALSE;
 	}
 
+	if (kstore != NULL)
+		g_object_unref (kstore);
+
+	if (selected_path != NULL)
+		g_free (selected_path);
+
 	return ok;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]