From 66de053b3a47b83eb2a7877a72489c750759f89b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 10 Mar 2005 15:57:43 +0000 Subject: [PATCH] activate the tab when we create it with new_message window --- plugins/gtkgui/dialogs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/gtkgui/dialogs.py b/plugins/gtkgui/dialogs.py index 6639d661f..2db20250c 100644 --- a/plugins/gtkgui/dialogs.py +++ b/plugins/gtkgui/dialogs.py @@ -632,10 +632,9 @@ class New_message_dialog: self.plugin.roster.add_user_to_roster(user.jid, self.account) else: user = self.plugin.roster.contacts[self.account][jid][0] - if self.plugin.windows[self.account]['chats'].has_key(jid): - self.plugin.windows[self.account]['chats'][jid].active_tab(jid) - else: + if not self.plugin.windows[self.account]['chats'].has_key(jid): self.plugin.roster.new_chat(user, self.account) + self.plugin.windows[self.account]['chats'][jid].active_tab(jid) widget.get_toplevel().destroy() def __init__(self, plugin, account):