use set_active_tab in a place we did not [liorithel]
This commit is contained in:
parent
92167a98f7
commit
d3183f10dd
1 changed files with 2 additions and 0 deletions
|
@ -115,9 +115,11 @@ class Systray:
|
||||||
def start_chat(self, widget, account, jid):
|
def start_chat(self, widget, account, jid):
|
||||||
if self.plugin.windows[account]['chats'].has_key(jid):
|
if self.plugin.windows[account]['chats'].has_key(jid):
|
||||||
self.plugin.windows[account]['chats'][jid].window.present()
|
self.plugin.windows[account]['chats'][jid].window.present()
|
||||||
|
self.plugin.windows[account]['chats'][jid].set_active_tab(jid)
|
||||||
elif self.plugin.roster.contacts[account].has_key(jid):
|
elif self.plugin.roster.contacts[account].has_key(jid):
|
||||||
self.plugin.roster.new_chat(
|
self.plugin.roster.new_chat(
|
||||||
self.plugin.roster.contacts[account][jid][0], account)
|
self.plugin.roster.contacts[account][jid][0], account)
|
||||||
|
self.plugin.windows[account]['chats'][jid].set_active_tab(jid)
|
||||||
|
|
||||||
def on_new_message_menuitem_activate(self, widget, account):
|
def on_new_message_menuitem_activate(self, widget, account):
|
||||||
"""When new message menuitem is activated:
|
"""When new message menuitem is activated:
|
||||||
|
|
Loading…
Add table
Reference in a new issue