diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-19 12:51:13 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-19 12:51:13 (GMT) |
commit | cf13a7ff5bcf4987d23d56669e6c984142033338 (patch) | |
tree | 733b0023be87681cb757e24f579a2e7c8be1c0ba /shell | |
parent | 21aa37cc24edf3b4f4e69e263f049c7298bf7bf0 (diff) |
Unregister the chat service on destroy.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/model/BuddyModel.py | 5 | ||||
-rw-r--r-- | shell/view/ActivityHost.py | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/shell/model/BuddyModel.py b/shell/model/BuddyModel.py index 3205425..651e911 100644 --- a/shell/model/BuddyModel.py +++ b/shell/model/BuddyModel.py @@ -139,7 +139,4 @@ class BuddyModel(gobject.GObject): def __buddy_current_activity_changed_cb(self, buddy, activity=None): if not self._buddy: return - if activity: - self.emit('current-activity-changed', activity) - else: - self.emit('current-activity-changed') + self.emit('current-activity-changed', activity) diff --git a/shell/view/ActivityHost.py b/shell/view/ActivityHost.py index 4074de2..eacb30f 100644 --- a/shell/view/ActivityHost.py +++ b/shell/view/ActivityHost.py @@ -150,6 +150,6 @@ class ActivityHost: def _activity_closed_cb(self, shell, activity): if activity == self: - self.chat_hide() + self._chat_window.destroy() self._frame_was_visible = False |