Fix setting active user

This commit is contained in:
Anna 2010-05-21 11:13:04 -04:00
parent 69cba102d3
commit 1a98de805f

View File

@ -557,7 +557,10 @@ class Hrafn():
self.first_account_item = menu_item self.first_account_item = menu_item
menu_item.set_draw_as_radio(False) menu_item.set_draw_as_radio(False)
if username == self.username:
if not self.db.has_key('active_user'):
self.db['active_user'] = username
elif username == self.db['active_user']:
menu_item.set_active(True) menu_item.set_active(True)
menu_item.connect('activate', self.on_account_changed, username) menu_item.connect('activate', self.on_account_changed, username)