diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-12-17 17:38:18 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-12-17 17:41:07 -0300 |
commit | 768a460a0f524e32528063e36a0203a3d83e8de1 (patch) | |
tree | 7a15a8e4d11d18c4596b6bb3e9aa7c114bba1db4 | |
parent | 3a6b023e11903ddd1fc6cd0c5a25124b56ae788c (diff) |
Reset registration error and input widgets.
The registration widgets are cleared if the user goes back to the
provider selection page.
[Closes #4742]
-rw-r--r-- | changes/bug-4742_reset-registration-page-error | 2 | ||||
-rw-r--r-- | src/leap/bitmask/gui/wizard.py | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/changes/bug-4742_reset-registration-page-error b/changes/bug-4742_reset-registration-page-error new file mode 100644 index 00000000..2b031796 --- /dev/null +++ b/changes/bug-4742_reset-registration-page-error @@ -0,0 +1,2 @@ +- Reset registration error and input widgets if the user goes back to provider + selection in wizard. Closes #4742. diff --git a/src/leap/bitmask/gui/wizard.py b/src/leap/bitmask/gui/wizard.py index 5f5224ae..ad0565e4 100644 --- a/src/leap/bitmask/gui/wizard.py +++ b/src/leap/bitmask/gui/wizard.py @@ -597,6 +597,7 @@ class Wizard(QtGui.QWizard): Prepares the pages when they appear """ if pageId == self.SELECT_PROVIDER_PAGE: + self._clear_register_widgets() skip = self.ui.rbExistingProvider.isChecked() if not self._provider_checks_ok: self._enable_check() @@ -670,3 +671,12 @@ class Wizard(QtGui.QWizard): return self.SERVICES_PAGE return QtGui.QWizard.nextId(self) + + def _clear_register_widgets(self): + """ + Clears the widgets that my be filled and a possible error message. + """ + self._set_register_status("") + self.ui.lblUser.setText("") + self.ui.lblPassword.setText("") + self.ui.lblPassword2.setText("") |