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:
|
if self._activity_ps == activity_ps:
|
||||||
return
|
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._activity_ps = activity_ps
|
||||||
|
|
||||||
self.clear()
|
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:
|
if activity_ps != None:
|
||||||
for buddy in activity_ps.get_joined_buddies():
|
for buddy in activity_ps.get_joined_buddies():
|
||||||
self.add(buddy)
|
self.add(buddy)
|
||||||
|
Loading…
Reference in New Issue
Block a user