summaryrefslogtreecommitdiff
path: root/src/leap/gui/firstrun/wizard.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-21 05:55:23 +0900
committerkali <kali@leap.se>2012-11-21 05:55:23 +0900
commit8ad4957531f5279cf65df36b015d83443deded33 (patch)
treeb74e0f6576f89f96603f203b1dec68b930b84096 /src/leap/gui/firstrun/wizard.py
parent7dceb11bcd4cf552938ccfa02daaf6f902ef385b (diff)
update check status when provider entry changes.
disable next button and remove any error message (but remember which was the latest bad string if you are changing providers withouth going to the next page).
Diffstat (limited to 'src/leap/gui/firstrun/wizard.py')
-rwxr-xr-xsrc/leap/gui/firstrun/wizard.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/gui/firstrun/wizard.py b/src/leap/gui/firstrun/wizard.py
index 8efa2018..4a72177e 100755
--- a/src/leap/gui/firstrun/wizard.py
+++ b/src/leap/gui/firstrun/wizard.py
@@ -170,6 +170,11 @@ class FirstRunWizard(QtGui.QWizard):
def set_validation_error(self, pagename, error):
self.validation_errors[pagename] = error
+ def clean_validation_error(self, pagename):
+ vald = self.validation_errors
+ if pagename in vald:
+ del vald[pagename]
+
def get_validation_error(self, pagename):
return self.validation_errors.get(pagename, None)