changeset 87ec4c6a14b7 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=87ec4c6a14b7
description: don't show accounts wizzard if we have configured accounts that are disabled
diffstat:
src/roster_window.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 6414b6ef409f -r 87ec4c6a14b7 src/roster_window.py
--- a/src/roster_window.py Sat May 28 15:37:40 2011 +0200
+++ b/src/roster_window.py Sun May 29 20:02:25 2011 +0200
@@ -6395,7 +6395,10 @@
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()