[gnome-contacts] Make sure we reconnect to the individual notify if the individual changes



commit 6f8f80aab6f38669c2c5d365767ec0c41de5eddf
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Aug 29 12:05:01 2011 +0200

    Make sure we reconnect to the individual notify if the individual changes

 src/contacts-contact.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 2980353..50cd043 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -317,11 +317,14 @@ public class Contacts.Contact : GLib.Object  {
     foreach (var p in individual.personas) {
       disconnect_persona (p);
     }
+    individual.notify.disconnect(notify_cb);
     individual = new_individual;
     individual.set_data ("contact", this);
     foreach (var p in individual.personas) {
       connect_persona (p);
     }
+    _small_avatar = null;
+    individual.notify.connect(notify_cb);
     queue_changed ();
   }
 



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