fix a logic bug. thanks deluge

This commit is contained in:
Nikos Kouremenos 2005-11-08 11:13:47 +00:00
parent 20aac96c8d
commit a3cd40ac84
1 changed files with 4 additions and 1 deletions

View File

@ -345,7 +345,10 @@ class Systray:
self.make_menu(event)
def on_show_menuitem_activate(self, widget, show):
l = ['online', 'chat', 'away', 'xa', 'dnd', 'invisible', 'offline']
# we all add some fake (we cannot select those nor have them as show)
# but this helps to align with roster's status_combobox index positions
l = ['online', 'chat', 'away', 'xa', 'dnd', 'invisible', 'SEPARATOR',
'CHANGE_STATUS_MSG_MENUITEM', 'SEPARATOR', 'offline']
index = l.index(show)
gajim.interface.roster.status_combobox.set_active(index)