From 4ae020946c9d1c6aeb985e3557d000b75a79cbe5 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 14 Jun 2006 14:54:23 +0000 Subject: [PATCH] destroy bigger_avatar_window when we close a tab. Fixes #2034 --- src/chat_control.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/chat_control.py b/src/chat_control.py index 6738c9255..a39962fcc 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1363,6 +1363,9 @@ class ChatControl(ChatControlBase): # Disconnect timer callbacks gobject.source_remove(self.possible_paused_timeout_id) gobject.source_remove(self.possible_inactive_timeout_id) + # Remove bigger avatar window + if self.bigger_avatar_window: + self.bigger_avatar_window.destroy() # Clean up systray if gajim.interface.systray_enabled and self.nb_unread > 0: gajim.interface.systray.remove_jid(self.contact.jid, self.account, @@ -1641,6 +1644,7 @@ class ChatControl(ChatControlBase): def _on_window_avatar_leave_notify_event(self, widget, event): '''we just left the popup window that holds avatar''' self.bigger_avatar_window.destroy() + self.bigger_avatar_window = None # Re-show the small avatar self.show_avatar()