[Sugar-devel] [PATCH] Don't emit buddy-removed if we don't know yet its contact-id #2402
Tomeu Vizoso
tomeu.vizoso at collabora.co.uk
Mon Oct 4 13:42:31 EDT 2010
Otherwise the owner icon is removed from the neighborhood view
---
src/jarabe/model/neighborhood.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py
index 478ee46..91dd059 100644
--- a/src/jarabe/model/neighborhood.py
+++ b/src/jarabe/model/neighborhood.py
@@ -283,7 +283,8 @@ class _Account(gobject.GObject):
self.emit('connected')
else:
for contact_handle, contact_id in self._buddy_handles.items():
- self.emit('buddy-removed', contact_id)
+ if contact_id is not None:
+ self.emit('buddy-removed', contact_id)
for room_handle, activity_id in self._activity_handles.items():
self.emit('activity-removed', activity_id)
--
1.7.2.3
More information about the Sugar-devel
mailing list