From 5b44d73ebd013d649034001496ad79939efab372 Mon Sep 17 00:00:00 2001 From: Raul Gutierrez Segales Date: Mon, 29 Aug 2011 18:26:27 +0100 Subject: [PATCH] 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 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.7.4