Disconnect the signals from the right object

This commit is contained in:
Marco Pesenti Gritti 2006-09-01 18:59:14 +02:00
parent c39d693d08
commit bcfe526a85

View File

@ -84,17 +84,17 @@ class FriendsGroup(goocanvas.Group):
if self._activity_ps == activity_ps:
return
if self._joined_hid > 0:
self._activity_ps.disconnect(self._joined_hid)
self._joined_hid = -1
if self._left_hid > 0:
self._activity_ps.disconnect(self._left_hid)
self._left_hid = -1
self._activity_ps = activity_ps
self.clear()
if self._joined_hid > 0:
self.disconnect(self._joined_hid)
self._joined_hid = -1
if self._left_hid > 0:
self.disconnect(self._left_hid)
self._left_hid = -1
if activity_ps != None:
for buddy in activity_ps.get_joined_buddies():
self.add(buddy)