From 510184a6b24b9453ffb66480ee12d619e309cd43 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Tue, 12 Jun 2007 18:16:34 +0000 Subject: [PATCH] move focus_out_line when groupchat is minimized --- src/groupchat_control.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 8858e58d08..9e2b528f35 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -669,8 +669,7 @@ class GroupchatControl(ChatControlBase): other_tags_for_text.append('gc_nickname_color_' + \ str(self.gc_custom_colors[contact])) - if self.parent_win: - self.check_and_possibly_add_focus_out_line() + self.check_and_possibly_add_focus_out_line() ChatControlBase.print_conversation_line(self, text, kind, contact, tim, other_tags_for_name, [], other_tags_for_text, xhtml = xhtml) @@ -719,7 +718,7 @@ class GroupchatControl(ChatControlBase): it removes previous line first''' win = gajim.interface.msg_win_mgr.get_window(self.room_jid, self.account) - if self.room_jid == win.get_active_jid() and\ + if win and self.room_jid == win.get_active_jid() and\ win.window.get_property('has-toplevel-focus') and\ self.parent_win.get_active_control() == self: # it's the current room and it's the focused window. -- GitLab