Author: asterix Date: 2008-05-30 12:07:01 +0200 (Fri, 30 May 2008) New Revision: 9708
Modified: trunk/src/chat_control.py Log: check active tab with control variable, not jid. fixes #3876
Modified: trunk/src/chat_control.py =================================================================== --- trunk/src/chat_control.py 2008-05-29 18:42:58 UTC (rev 9707) +++ trunk/src/chat_control.py 2008-05-30 10:07:01 UTC (rev 9708) @@ -685,8 +685,8 @@ 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 @@ 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)