From 1a98de805f11a51274f467b916556670ac02f9d7 Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 21 May 2010 11:13:04 -0400 Subject: [PATCH] Fix setting active user --- hrafn.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hrafn.py b/hrafn.py index 784e12d..e7fd0bf 100755 --- a/hrafn.py +++ b/hrafn.py @@ -557,7 +557,10 @@ class Hrafn(): self.first_account_item = menu_item 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.connect('activate', self.on_account_changed, username)