From 21af279d83a2f51066f87529f1ce49f8c4b658e5 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 30 Mar 2011 20:50:41 -0500 Subject: [PATCH] Fixing a bug where the UI was not updated on logout --- src/session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/session.py b/src/session.py index 7697bf1..097c9dd 100644 --- a/src/session.py +++ b/src/session.py @@ -270,6 +270,7 @@ class Session(QtCore.QObject): self._loggedInTime = self._LOGGEDOUT_TIME self._backend[0].persist() self._save_to_cache() + self.stateChange.emit(self.LOGGEDOUT_STATE) def clear(self): assert self.state == self.LOGGEDOUT_STATE, "Can only clear when logged out (currently %s" % self.state @@ -283,6 +284,7 @@ class Session(QtCore.QObject): self._pool.stop() self._loggedInTime = self._LOGGEDOUT_TIME self.clear() + self.stateChange.emit(self.LOGGEDOUT_STATE) def update_contacts(self, force = True): if not force and self._contacts: -- 1.7.9.5