summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-19 23:23:50 +0900
committerkali <kali@leap.se>2012-11-19 23:23:50 +0900
commit7ab2ea1adb82d8c1c6bbae4dc58a157326f579a2 (patch)
tree85b718a81338f5c03ba0d8bfb91db33506bef5c6 /src
parent4153bee65d2541b99d4e41aaaf2fd6b2b71b2cc3 (diff)
set commit page (no back button after validation)
Diffstat (limited to 'src')
-rw-r--r--src/leap/gui/firstrun/register.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/gui/firstrun/register.py b/src/leap/gui/firstrun/register.py
index e1a8149c..f872a127 100644
--- a/src/leap/gui/firstrun/register.py
+++ b/src/leap/gui/firstrun/register.py
@@ -29,6 +29,13 @@ class RegisterUserPage(QtGui.QWizardPage, UserFormMixIn):
self.current_page = "signup"
+ # commit page means there's no way back after this...
+ # XXX should change the text on the "commit" button...
+ self.setCommitPage(True)
+
+ self.initUI()
+
+ def initUI(self):
userNameLabel = QtGui.QLabel("User &name:")
userNameLineEdit = QtGui.QLineEdit()
userNameLineEdit.cursorPositionChanged.connect(