activate the tab when we create it with new_message window

This commit is contained in:
Yann Leboulanger 2005-03-10 15:57:43 +00:00
parent b8ece6c041
commit 66de053b3a
1 changed files with 2 additions and 3 deletions

View File

@ -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):