From cbedeb9839bd3958fe0c292110738a2dd0bfaad6 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 9 Nov 2007 09:21:38 +0000 Subject: [PATCH] fix systray status change when status is not syncronized between all accounts. fixes #3549 --- src/systray.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/systray.py b/src/systray.py index 988742564..2d6df9fd4 100644 --- a/src/systray.py +++ b/src/systray.py @@ -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()