diff options
author | kali <kali@leap.se> | 2012-11-21 05:55:23 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-11-21 05:55:23 +0900 |
commit | 8ad4957531f5279cf65df36b015d83443deded33 (patch) | |
tree | b74e0f6576f89f96603f203b1dec68b930b84096 /src/leap/gui/firstrun/wizard.py | |
parent | 7dceb11bcd4cf552938ccfa02daaf6f902ef385b (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-x | src/leap/gui/firstrun/wizard.py | 5 |
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) |