add layout before creating buttons, so that default button is set

This commit is contained in:
ThomasV 2014-04-28 15:50:31 +02:00
parent 7dd78e3768
commit f4817d771f
1 changed files with 1 additions and 1 deletions

View File

@ -207,8 +207,8 @@ class InstallWizard(QDialog):
vbox = QVBoxLayout()
vbox.addWidget(QLabel(msg))
vbox.addStretch(1)
vbox.addLayout(ok_cancel_buttons(self, _('OK')))
self.set_layout(vbox)
vbox.addLayout(ok_cancel_buttons(self, _('OK')))
if not self.exec_():
return None
return True