summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-04-02 18:23:50 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-04-02 18:23:50 -0300
commitb8e529c1656db1dc059b3cc1cb8d5319614c3986 (patch)
treecad4ac25759087dcba921659c140c80c2488a116
parent5ba94ca43aefc618cbbdbb27f077ce346ac0ef35 (diff)
Reset checks if the provider is changed in wizard.
Closes #5396.
-rw-r--r--changes/bug-5396_disable-next-if-provider-is-changed1
-rw-r--r--src/leap/bitmask/gui/wizard.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/changes/bug-5396_disable-next-if-provider-is-changed b/changes/bug-5396_disable-next-if-provider-is-changed
new file mode 100644
index 00000000..5a7a3449
--- /dev/null
+++ b/changes/bug-5396_disable-next-if-provider-is-changed
@@ -0,0 +1 @@
+- Disable 'next' button if the checks passed but the provider is changed. Closes #5396.
diff --git a/src/leap/bitmask/gui/wizard.py b/src/leap/bitmask/gui/wizard.py
index 2f274e33..e2c1a16e 100644
--- a/src/leap/bitmask/gui/wizard.py
+++ b/src/leap/bitmask/gui/wizard.py
@@ -103,6 +103,8 @@ class Wizard(QtGui.QWizard):
self.ui.lnProvider.textChanged.connect(self._enable_check)
self.ui.rbNewProvider.toggled.connect(
lambda x: self._enable_check())
+ self.ui.cbProviders.currentIndexChanged[int].connect(
+ self._reset_provider_check)
self.ui.lblUser.returnPressed.connect(
self._focus_password)