upgrade the systray variable when we change an account name
This commit is contained in:
parent
3ae06592f6
commit
068d75dbc1
|
@ -1119,9 +1119,16 @@ class Account_modification_window:
|
|||
self.plugin.roster.contacts[self.account]
|
||||
self.plugin.sleeper_state[name] = \
|
||||
self.plugin.sleeper_state[self.account]
|
||||
#upgrade account variable in opened windows
|
||||
for kind in ['infos', 'chats', 'gc']:
|
||||
for jid in self.plugin.windows[name][kind]:
|
||||
self.plugin.windows[name][kind][jid].account = name
|
||||
for j in self.plugin.windows[name][kind]:
|
||||
self.plugin.windows[name][kind][j].account = name
|
||||
#upgrade account in systray
|
||||
print self.plugin.systray.jids
|
||||
for list in self.plugin.systray.jids:
|
||||
if list[0] == self.account:
|
||||
list[0] = name
|
||||
print self.plugin.systray.jids
|
||||
del self.plugin.windows[self.account]
|
||||
del self.plugin.queues[self.account]
|
||||
del self.plugin.connected[self.account]
|
||||
|
|
|
@ -45,6 +45,7 @@ class systrayDummy:
|
|||
pass
|
||||
def __init__(self):
|
||||
self.t = gtk.Button()
|
||||
self.jids = []
|
||||
|
||||
class systray:
|
||||
"""Class for icon in the systray"""
|
||||
|
|
Loading…
Reference in New Issue