From 1ffc14df76e0142d8daf324340f0dc84e4cb073d Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 3 Jan 2016 20:09:05 +0900 Subject: [PATCH] Force OK button to be default Until we work out the right way to use the stacked dialogs. --- gui/qt/installwizard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py index 846e5ba32..956557d54 100644 --- a/gui/qt/installwizard.py +++ b/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_():