Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Garg <ajay@activitycentral.com>2012-01-28 08:43:33 (GMT)
committer Anish Mangal <anish@activitycentral.com>2012-04-27 10:02:36 (GMT)
commit51caf0a7c3c045baee5a512ee5a7d11491b91c67 (patch)
treeb8b222f31245070f26f6cf1f6a23024d6bd455da
parent3830e3769d60f80886d299f6c969acebe619fa0a (diff)
sl#2955: Ignore Buddy updates before receiving the initial Buddy list
-rw-r--r--src/jarabe/model/neighborhood.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py
index 828cb14..4528a15 100644
--- a/src/jarabe/model/neighborhood.py
+++ b/src/jarabe/model/neighborhood.py
@@ -427,7 +427,8 @@ class _Account(gobject.GObject):
def __buddy_info_updated_cb(self, handle, properties):
logging.debug('_Account.__buddy_info_updated_cb %r', handle)
- self.emit('buddy-updated', self._buddy_handles[handle], properties)
+ if handle in self._buddy_handles:
+ self.emit('buddy-updated', self._buddy_handles[handle], properties)
def __current_activity_changed_cb(self, contact_handle, activity_id,
room_handle):