diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-03-11 18:13:55 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-03-11 18:13:55 -0300 |
commit | 77c7e96e2aad4db223e4c7af53ec300d5472829b (patch) | |
tree | 12145e084fc8edf8ccb9007dde2120c439f79df4 /src/leap/gui/wizardpage.py | |
parent | b7325ef4527b90ed007a3f3ba7c61ff680076957 (diff) |
Instantiate provider name in the wizard once its set
Diffstat (limited to 'src/leap/gui/wizardpage.py')
-rw-r--r-- | src/leap/gui/wizardpage.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/gui/wizardpage.py b/src/leap/gui/wizardpage.py index 2138ac7b..b2a00028 100644 --- a/src/leap/gui/wizardpage.py +++ b/src/leap/gui/wizardpage.py @@ -27,9 +27,10 @@ class WizardPage(QtGui.QWizardPage): QtGui.QWizardPage.__init__(self) self._completed = False - def set_completed(self): - self._completed = True - self.completeChanged.emit() + def set_completed(self, val=True): + self._completed = val + if val: + self.completeChanged.emit() def isComplete(self): return self._completed |