[folks] tpf-persona-store: call _emit_personas_changed() when reseting _persona_set



commit af500a4bd9fe88ae9f3832a37e19a86a4273ba5d
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Sep 6 14:26:33 2012 +0200

    tpf-persona-store: call _emit_personas_changed() when reseting _persona_set
    
    We need to notify when we reset the persona set.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683390
    
    Signed-off-by: Jeremy Whiting <jpwhiting kde org>

 NEWS                                          |    1 +
 backends/telepathy/lib/tpf-persona-store.vala |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index ca23da1..2d053ef 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,7 @@ Bugs fixed:
 â Bug 681726 â empathy crashed with SIGABRT in g_assertion_message()
 â Bug 683452 â gnome-contacts starts up with an empty address book
 â Bug 681476 â folks-inspect could use some methods to set values
+â Bug 683390 â Individuals sometimes not removed when disabling their Telepathy account
 
 API changes:
 â Add PropertyError.UNAVAILABLE
diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala
index 74c8ce0..4d7b54a 100644
--- a/backends/telepathy/lib/tpf-persona-store.vala
+++ b/backends/telepathy/lib/tpf-persona-store.vala
@@ -395,6 +395,8 @@ public class Tpf.PersonaStore : Folks.PersonaStore
       else
         this.trust_level = PersonaStoreTrust.PARTIAL;
 
+      this._emit_personas_changed (null, this._persona_set);
+
       this._personas = new HashMap<string, Persona> ();
       this._personas_ro = this._personas.read_only_view;
       this._persona_set = new HashSet<Persona> ();



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