From a49a3a63e1862d7ce338b6192aec6510cd437967 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 23 Jun 2009 16:42:32 +0200 Subject: [PATCH] hide bigger avatar when switching tab. --- src/chat_control.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/chat_control.py b/src/chat_control.py index 1ac46edd1..f54c56a15 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -2373,6 +2373,12 @@ class ChatControl(ChatControlBase): self.send_chatstate('active', self.contact) else: self.send_chatstate('inactive', self.contact) + # Hide bigger avatar window + if self.bigger_avatar_window: + self.bigger_avatar_window.destroy() + self.bigger_avatar_window = None + # Re-show the small avatar + self.show_avatar() def show_avatar(self, resource = None): if not gajim.config.get('show_avatar_in_chat'):