summaryrefslogtreecommitdiff
path: root/src/leap/gui/firstrun/providerselect.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-12 12:45:37 +0900
committerkali <kali@leap.se>2012-11-12 12:45:37 +0900
commit42ba228eecb5726506848bd08758bd1f925905cc (patch)
treef75626d9add4a6ab377f0f487858109b85b6b3cd /src/leap/gui/firstrun/providerselect.py
parentfe16e62fa83c24d2ef379a3f9e102d336e527656 (diff)
fix prevalidation error showing in register page.
Diffstat (limited to 'src/leap/gui/firstrun/providerselect.py')
-rw-r--r--src/leap/gui/firstrun/providerselect.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/leap/gui/firstrun/providerselect.py b/src/leap/gui/firstrun/providerselect.py
index 3fb76557..8d1aa869 100644
--- a/src/leap/gui/firstrun/providerselect.py
+++ b/src/leap/gui/firstrun/providerselect.py
@@ -175,6 +175,13 @@ class SelectProviderPage(QtGui.QWizardPage):
else:
showerr('')
+ def cleanup_errormsg(self):
+ """
+ we reset bad_string to None
+ should be called before leaving the page
+ """
+ self.bad_string = None
+
def paintEvent(self, event):
"""
we hook our populate errors
@@ -190,6 +197,13 @@ class SelectProviderPage(QtGui.QWizardPage):
self.validationMsg.setText('')
self.certinfoGroup.hide()
+ def validatePage(self):
+ # some cleanup before we leave the page
+ self.cleanup_errormsg()
+
+ # go
+ return True
+
def nextId(self):
wizard = self.wizard()
if not wizard: