Fix notification order in backends
authorPhilip Withnall <philip@tecnocode.co.uk>
Sat, 13 Nov 2010 14:32:28 +0000 (14:32 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Sat, 13 Nov 2010 14:32:28 +0000 (14:32 +0000)
backends/key-file/kf-backend.vala
backends/telepathy/tp-backend.vala

index 1794d49..c050f79 100644 (file)
@@ -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");
index 84eb686..9cefacc 100644 (file)
@@ -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)