summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/providers.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-08-20 15:10:02 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-08-20 16:38:14 -0300
commitb6ab5790e8b2ac0d67bf0eb40e474b8bed4c42dd (patch)
tree06eecf6a96567fcf5f282caffb463c843799f883 /src/leap/bitmask/gui/providers.py
parent20122b32ad799cf93d88c86c67d52cc7004d6af8 (diff)
Select current provider on EIP preferences.
- Don't disconnect logout signals, so when the wizard is triggered the UI can reflect the logout result. - Restore the selected provider when 'other...' is selected *before* the provider_changed signal is emitted to avoid that option to keep selected in case of some error. - Avoid the currentIndexChanged to be triggered when we load the providers.
Diffstat (limited to 'src/leap/bitmask/gui/providers.py')
-rw-r--r--src/leap/bitmask/gui/providers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/gui/providers.py b/src/leap/bitmask/gui/providers.py
index b3eb8620..6954411f 100644
--- a/src/leap/bitmask/gui/providers.py
+++ b/src/leap/bitmask/gui/providers.py
@@ -109,6 +109,6 @@ class Providers(QtCore.QObject):
"""
self._providers_indexes.append(idx)
is_wizard = idx == (self._combo.count() - 1)
- self._provider_changed.emit(is_wizard)
if is_wizard:
self.restore_previous_provider()
+ self._provider_changed.emit(is_wizard)