diff options
Diffstat (limited to 'src/leap/gui/progress.py')
-rw-r--r-- | src/leap/gui/progress.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leap/gui/progress.py b/src/leap/gui/progress.py index d6551939..b2e34e22 100644 --- a/src/leap/gui/progress.py +++ b/src/leap/gui/progress.py @@ -186,6 +186,12 @@ class ValidationPage(QtGui.QWizardPage): self.errors = OrderedDict() + def set_error(self, name, error): + self.errors[name] = error + + def pop_first_error(self): + return list(reversed(self.errors.items())).pop() + def populateStepsTable(self): # from examples, # but I guess it's not needed to re-populate |