add layout before creating buttons, so that default button is set
This commit is contained in:
@@ -207,8 +207,8 @@ class InstallWizard(QDialog):
|
|||||||
vbox = QVBoxLayout()
|
vbox = QVBoxLayout()
|
||||||
vbox.addWidget(QLabel(msg))
|
vbox.addWidget(QLabel(msg))
|
||||||
vbox.addStretch(1)
|
vbox.addStretch(1)
|
||||||
vbox.addLayout(ok_cancel_buttons(self, _('OK')))
|
|
||||||
self.set_layout(vbox)
|
self.set_layout(vbox)
|
||||||
|
vbox.addLayout(ok_cancel_buttons(self, _('OK')))
|
||||||
if not self.exec_():
|
if not self.exec_():
|
||||||
return None
|
return None
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user