From 6b097f465a611ba1594b134a58753a98b3806bf1 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 14 Oct 2005 21:42:04 +0000 Subject: [PATCH] fix a TB. thanks deluge --- src/groupchat_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 83826794d..c862f5cf2 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -285,7 +285,9 @@ class GroupchatWindow(chat.Chat): subject = _('This room has no subject') self.subject_tooltip[new_jid].set_tip(event_box, subject) - if len(self.xmls) > 1: # if we have more than one tab + if len(self.xmls) > 1 and old_jid != '': # if we have more than one tab + # and we have the old_jid (eg we did NOT close the tab + # but we just switched) # then add the focus-out line to the tab we are leaving self.check_and_possibly_add_focus_out_line(old_jid) chat.Chat.on_chat_notebook_switch_page(self, notebook, page, page_num)