Browse Source

Force OK button to be default

Until we work out the right way to use the stacked dialogs.
283
Neil Booth 9 years ago
parent
commit
1ffc14df76
  1. 4
      gui/qt/installwizard.py

4
gui/qt/installwizard.py

@ -193,8 +193,10 @@ class InstallWizard(WindowModalDialog, WizardBase):
button.setChecked(True)
vbox.addStretch(1)
vbox.addLayout(Buttons(CancelButton(self), OkButton(self, _('Next'))))
OK = OkButton(self, _('Next'))
vbox.addLayout(Buttons(CancelButton(self), OK))
self.set_layout(vbox)
OK.setDefault(True)
self.raise_()
if not self.exec_():

Loading…
Cancel
Save