Force OK button to be default

Until we work out the right way to use the stacked dialogs.
This commit is contained in:
Neil Booth 2016-01-03 20:09:05 +09:00
parent 43fd684d97
commit 1ffc14df76
1 changed files with 3 additions and 1 deletions

View File

@ -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_():