#4238: Handle double BuddyLeft in handle tracking in sugar.presence

This commit is contained in:
Morgan Collett 2007-10-22 13:22:32 +01:00
parent 06ec3d2b22
commit 012fc5d23b
2 changed files with 5 additions and 2 deletions

2
NEWS
View File

@ -1,3 +1,5 @@
* #4238: Handle double BuddyLeft in handle tracking in sugar.presence (morgs)
Snapshot 57402cf309
* Add new keybindings (Ctrl+Q, Ctrl+escape) for close activity (erikos)

View File

@ -203,8 +203,9 @@ class Activity(gobject.GObject):
def _buddy_left_cb(self, object_path):
_logger.debug('%r: buddy %s left', self, object_path)
gobject.idle_add(self._emit_buddy_left_signal, object_path)
handle = self._buddy_path_to_handle.pop(object_path)
self._handle_to_buddy_path.pop(handle, None)
handle = self._buddy_path_to_handle.pop(object_path, None)
if handle:
self._handle_to_buddy_path.pop(handle, None)
def _emit_new_channel_signal(self, object_path):
"""Generate new-channel GObject signal with channel object path