From e9ab396e0c34a7f339a688879891aa0c9d9a1840 Mon Sep 17 00:00:00 2001 From: Luca Dariz Date: Fri, 22 Jan 2010 18:59:33 +0100 Subject: [PATCH] [core] Fix bug when starting with no accounts saved, thanks to darkness51 for reporting via github --- amsn2/core/userinterface_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amsn2/core/userinterface_manager.py b/amsn2/core/userinterface_manager.py index 573456bb..fa06ab00 100644 --- a/amsn2/core/userinterface_manager.py +++ b/amsn2/core/userinterface_manager.py @@ -66,7 +66,7 @@ def loadLogin(self, accounts): if not self._login: self._login = self._ui.aMSNLoginWindow(self._core, self._main) self._login.setAccounts(accounts) - if accounts[0].autologin: + if accounts and accounts[0].autologin: self._core.signinToAccount(self._login, accounts[0]) self._main.setTitle("aMSN 2 - Login")