Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-09-21 13:56:40 (GMT)
committer Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-09-21 16:07:21 (GMT)
commitd387ee2f1658a5c67052bd85e72eb282b66b02ff (patch)
tree1c181e7c8f866df9c170dc4e50e74c90ae28644d
parentd16a676ed0f6d1e221ff0f712a835b9c773ecee8 (diff)
Make sure we don't change the owner's colors because of a network event #2348
Because the owner is stored in Neighborhood._buddies in the key None.
-rw-r--r--src/jarabe/model/neighborhood.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py
index b808e12..ff973fd 100644
--- a/src/jarabe/model/neighborhood.py
+++ b/src/jarabe/model/neighborhood.py
@@ -829,6 +829,10 @@ class Neighborhood(gobject.GObject):
def __buddy_updated_cb(self, account, contact_id, properties):
logging.debug('__buddy_updated_cb %r', contact_id)
+ if contact_id is None:
+ # Don't know the contact-id yet, will get the full state later
+ return
+
if contact_id not in self._buddies:
logging.debug('__buddy_updated_cb Unknown buddy with contact_id %r',
contact_id)