[folks/wip/arbitrary-field-interface] Use modify_contact() directly instead of _commit_modified_property()



commit 73500c8cb18cdc9f0e2b08ce6189280d240c570a
Author: Rodrigo Moya <rodrigo moya collabora co uk>
Date:   Wed Sep 25 10:03:54 2013 +0200

    Use modify_contact() directly instead of _commit_modified_property()

 backends/eds/lib/edsf-persona-store.vala |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/backends/eds/lib/edsf-persona-store.vala b/backends/eds/lib/edsf-persona-store.vala
index b533e5d..b2e7b44 100644
--- a/backends/eds/lib/edsf-persona-store.vala
+++ b/backends/eds/lib/edsf-persona-store.vala
@@ -1725,7 +1725,14 @@ public class Edsf.PersonaStore : Folks.PersonaStore
       new_attr.add_value (details.value);
 
       persona.contact.add_attribute (new_attr);
-      yield this._commit_modified_property (persona, "extended-info");
+
+      try
+        {
+          yield ((!) this._addressbook).modify_contact (persona.contact, null);
+        }
+      catch (GLib.Error e)
+        {
+        }
     }
 
   internal async void _set_phones (Edsf.Persona persona,


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