[folks] Fix notification order in backends



commit 488a210918f54e76ddbbc2e40ac349a9b1549650
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Nov 13 14:32:28 2010 +0000

    Fix notification order in backends

 backends/key-file/kf-backend.vala  |    2 +-
 backends/telepathy/tp-backend.vala |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/backends/key-file/kf-backend.vala b/backends/key-file/kf-backend.vala
index 1794d49..c050f79 100644
--- a/backends/key-file/kf-backend.vala
+++ b/backends/key-file/kf-backend.vala
@@ -103,9 +103,9 @@ public class Folks.Backends.Kf.Backend : Folks.Backend
 
               this._persona_stores.insert (store.id, store);
               store.removed.connect (this.store_removed_cb);
+              this.notify_property ("persona-stores");
 
               this.persona_store_added (store);
-              this.notify_property ("persona-stores");
 
               this._is_prepared = true;
               this.notify_property ("is-prepared");
diff --git a/backends/telepathy/tp-backend.vala b/backends/telepathy/tp-backend.vala
index 84eb686..9cefacc 100644
--- a/backends/telepathy/tp-backend.vala
+++ b/backends/telepathy/tp-backend.vala
@@ -140,9 +140,9 @@ public class Folks.Backends.Tp.Backend : Folks.Backend
 
       this._persona_stores.insert (store.id, store);
       store.removed.connect (this.store_removed_cb);
+      this.notify_property ("persona-stores");
 
       this.persona_store_added (store);
-      this.notify_property ("persona-stores");
     }
 
   private void store_removed_cb (PersonaStore store)



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