Force OK button to be default
Until we work out the right way to use the stacked dialogs.
This commit is contained in:
@@ -193,8 +193,10 @@ class InstallWizard(WindowModalDialog, WizardBase):
|
|||||||
button.setChecked(True)
|
button.setChecked(True)
|
||||||
|
|
||||||
vbox.addStretch(1)
|
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)
|
self.set_layout(vbox)
|
||||||
|
OK.setDefault(True)
|
||||||
self.raise_()
|
self.raise_()
|
||||||
|
|
||||||
if not self.exec_():
|
if not self.exec_():
|
||||||
|
|||||||
Reference in New Issue
Block a user