add layout before creating buttons, so that default button is set
authorThomasV <thomasv@gitorious>
Mon, 28 Apr 2014 13:50:31 +0000 (15:50 +0200)
committerThomasV <thomasv@gitorious>
Mon, 28 Apr 2014 13:50:31 +0000 (15:50 +0200)
gui/qt/installwizard.py

index 9f6b35c..1c3c8eb 100644 (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