use same order as qt for ok and cancel buttons
authorecdsa <ecdsa@github>
Tue, 5 Mar 2013 05:35:34 +0000 (06:35 +0100)
committerecdsa <ecdsa@github>
Tue, 5 Mar 2013 05:35:34 +0000 (06:35 +0100)
gui/gui_classic.py

index 26a7e1e..be6597e 100644 (file)
@@ -251,12 +251,13 @@ def waiting_dialog(f):
 def ok_cancel_buttons(dialog):
     hbox = QHBoxLayout()
     hbox.addStretch(1)
-    b = QPushButton("OK")
-    hbox.addWidget(b)
-    b.clicked.connect(dialog.accept)
     b = QPushButton("Cancel")
     hbox.addWidget(b)
     b.clicked.connect(dialog.reject)
+    b = QPushButton("OK")
+    hbox.addWidget(b)
+    b.clicked.connect(dialog.accept)
+    b.setDefault(True)
     return hbox