e-d-s: use this.local_ids in linkable_property_to_links ()
authorRaul Gutierrez Segales <rgs@collabora.co.uk>
Mon, 29 Aug 2011 17:26:27 +0000 (18:26 +0100)
committerRaul Gutierrez Segales <rgs@collabora.co.uk>
Wed, 31 Aug 2011 20:54:19 +0000 (21:54 +0100)
Otherwise, this method can have a different  behaviour depending
on the state of the current Persona depending on whether
this.local_ids was called before or not.

backends/eds/lib/edsf-persona.vala

index 4dc8043..523b8c2 100644 (file)
@@ -552,7 +552,11 @@ public class Edsf.Persona : Folks.Persona,
         }
       else if (prop_name == "local-ids")
         {
-          foreach (var id in this._local_ids)
+          /* Note: we need to use this.local_ids and not this._local_ids,
+           * otherwise this can have a different  behaviour depending
+           * on the state of the current Persona depending on whether
+           * this.local_ids was called before or not. */
+          foreach (var id in this.local_ids)
             {
               callback (id);
             }