Move set_layout call

This code is identical to before, but for some reason the positioning
of this affects whether Next is the default action or not!

And it didn't have that effect with the old install wizard.  Odd.
This commit is contained in:
Neil Booth 2016-01-03 09:32:41 +09:00
parent 9eaf510ac6
commit 9aae66a9d2
1 changed files with 1 additions and 1 deletions

View File

@ -192,9 +192,9 @@ class InstallWizard(WindowModalDialog, MessageBoxMixin, WizardBase):
if i==0: if i==0:
button.setChecked(True) button.setChecked(True)
self.set_layout(vbox)
vbox.addStretch(1) vbox.addStretch(1)
vbox.addLayout(Buttons(CancelButton(self), OkButton(self, _('Next')))) vbox.addLayout(Buttons(CancelButton(self), OkButton(self, _('Next'))))
self.set_layout(vbox)
self.show() self.show()
self.raise_() self.raise_()