[folks] e-d-s: use this.local_ids in linkable_property_to_links ()



commit 5b44d73ebd013d649034001496ad79939efab372
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Mon Aug 29 18:26:27 2011 +0100

    e-d-s: use this.local_ids in linkable_property_to_links ()
    
    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 |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/backends/eds/lib/edsf-persona.vala b/backends/eds/lib/edsf-persona.vala
index 4dc8043..523b8c2 100644
--- a/backends/eds/lib/edsf-persona.vala
+++ b/backends/eds/lib/edsf-persona.vala
@@ -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);
             }



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