summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/wizard.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-12-17 17:17:27 -0400
committerKali Kaneko <kali@leap.se>2013-12-17 17:17:27 -0400
commitd20746393601297c933a7c07ac4a8d541c3c2134 (patch)
tree7a15a8e4d11d18c4596b6bb3e9aa7c114bba1db4 /src/leap/bitmask/gui/wizard.py
parent3a6b023e11903ddd1fc6cd0c5a25124b56ae788c (diff)
parent768a460a0f524e32528063e36a0203a3d83e8de1 (diff)
Merge remote-tracking branch 'ivan-github/bug/4742_reset-registration-page-error' into develop
Diffstat (limited to 'src/leap/bitmask/gui/wizard.py')
-rw-r--r--src/leap/bitmask/gui/wizard.py10
1 files changed, 10 insertions, 0 deletions
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("")