activate the tab when we create it with new_message window
This commit is contained in:
parent
b8ece6c041
commit
66de053b3a
1 changed files with 2 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue