[folks] eds: if set given to set_persona_stores is null, load any missing stores.



commit 7fc302f179806ecb3f3af99aa40b189b2981fd4e
Author: Jeremy Whiting <jpwhiting kde org>
Date:   Tue Oct 2 15:37:54 2012 -0600

    eds: if set given to set_persona_stores is null, load any missing stores.

 backends/eds/eds-backend.vala |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/backends/eds/eds-backend.vala b/backends/eds/eds-backend.vala
index b0d6f31..ba9580d 100644
--- a/backends/eds/eds-backend.vala
+++ b/backends/eds/eds-backend.vala
@@ -103,6 +103,14 @@ public class Folks.Backends.Eds.Backend : Folks.Backend
   public override void set_persona_stores (Set<string>? storeids)
     {
       this._storeids = storeids;
+      
+      /* If the set is empty, load all unloaded stores then return. */
+      if (storeids == null)
+        {
+          this._ab_source_list_changed_cb ();
+          return;
+        }
+
       bool stores_changed = false;
       /* First handle adding any missing persona stores. */
       foreach (string id in storeids)



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