From 685707e2e0d822d9db9202caed304b6598e67b87 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 30 May 2008 10:07:01 +0000 Subject: [PATCH] check active tab with control variable, not jid. fixes #3876 --- src/chat_control.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index cddf9cd35..ad55bcea9 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -685,8 +685,8 @@ class ChatControlBase(MessageControl): if self.type_id == message_control.TYPE_GC: gc_message = True - if ((self.parent_win and (not self.parent_win.get_active_jid() or \ - full_jid != self.parent_win.get_active_jid() or \ + if ((self.parent_win and (not self.parent_win.get_active_control() or \ + self != self.parent_win.get_active_control() or \ not self.parent_win.is_active() or not end)) or \ (gc_message and \ jid in gajim.interface.minimized_controls[self.account])) and \ @@ -719,8 +719,8 @@ class ChatControlBase(MessageControl): if not self.parent_win: return - if (not self.parent_win.get_active_jid() or \ - full_jid != self.parent_win.get_active_jid() or \ + if (not self.parent_win.get_active_control() or \ + self != self.parent_win.get_active_control() or \ not self.parent_win.is_active() or not end) and \ kind in ('incoming', 'incoming_queue'): self.parent_win.redraw_tab(self)