From bcfe526a85ac233e92d1bf37a241cbd5bd663f16 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 1 Sep 2006 18:59:14 +0200 Subject: [PATCH] Disconnect the signals from the right object --- shell/frame/RightPanel.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/shell/frame/RightPanel.py b/shell/frame/RightPanel.py index c6768a29..ca615f11 100644 --- a/shell/frame/RightPanel.py +++ b/shell/frame/RightPanel.py @@ -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)