Disconnect the signals from the right object
This commit is contained in:
parent
c39d693d08
commit
bcfe526a85
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user