open chat windows, if needed, on double click on systray icon

This commit is contained in:
Yann Leboulanger 2004-06-15 03:42:58 +00:00
parent bb6b3f9060
commit 7a413ec749
1 changed files with 4 additions and 0 deletions

View File

@ -1307,6 +1307,10 @@ class systray:
jid = self.jids[0][1]
if self.plugin.windows[account]['chats'].has_key(jid):
self.plugin.windows[account]['chats'][jid].window.present()
else:
self.plugin.windows[account]['chats'][jid] = message_Window(\
self.plugin.roster.contacts[account][jid][0], self.plugin, \
account)
if event.button == 3:
self.mk_menu(event)