From 5375ddfb3193ea86c47fa0698122efc7d77524ed Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 29 May 2011 20:02:25 +0200 Subject: [PATCH] don't show accounts wizzard if we have configured accounts that are disabled --- src/roster_window.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index add4bbe85..3d75eab8a 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -6395,7 +6395,10 @@ class RosterWindow: gajim.config.get('trayicon') != 'always': self.window.show_all() - if len(gajim.connections) == 0: # if we have no account + if not gajim.config.get_per('accounts') or \ + gajim.config.get_per('accounts') == ['Local'] and not \ + gajim.config.get_per('accounts', 'Local', 'active'): + # if we have no account configured or only Local account but not enabled def _open_wizard(): gajim.interface.instances['account_creation_wizard'] = \ config.AccountCreationWizardWindow()