fix systray status change when status is not syncronized between all accounts. fixes #3549

This commit is contained in:
Yann Leboulanger 2007-11-09 09:21:38 +00:00
parent b9a1365d50
commit cbedeb9839
1 changed files with 3 additions and 4 deletions

View File

@ -332,13 +332,12 @@ class Systray:
l = ['online', 'chat', 'away', 'xa', 'dnd', 'invisible', 'SEPARATOR',
'CHANGE_STATUS_MSG_MENUITEM', 'SEPARATOR', 'offline']
index = l.index(show)
if not helpers.statuses_unified():
gajim.interface.roster.status_combobox.set_active(index + 2)
return
current = gajim.interface.roster.status_combobox.get_active()
if index != current:
gajim.interface.roster.status_combobox.set_active(index)
elif not helpers.statuses_unified():
# We maybe need to emit the changed signal if all globaly sync'ed
# account don't have the global status
gajim.interface.roster.status_combobox.emit('changed')
def on_change_status_message_activate(self, widget):
model = gajim.interface.roster.status_combobox.get_model()