tForce OK button to be default - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 1ffc14df76e0142d8daf324340f0dc84e4cb073d
DIR parent 43fd684d979307c68b2270456bfe024fceb6232f
HTML Author: Neil Booth <kyuupichan@gmail.com>
Date: Sun, 3 Jan 2016 20:09:05 +0900
Force OK button to be default
Until we work out the right way to use the stacked dialogs.
Diffstat:
M gui/qt/installwizard.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
DIR diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py
t@@ -193,8 +193,10 @@ class InstallWizard(WindowModalDialog, WizardBase):
button.setChecked(True)
vbox.addStretch(1)
- vbox.addLayout(Buttons(CancelButton(self), OkButton(self, _('Next'))))
+ OK = OkButton(self, _('Next'))
+ vbox.addLayout(Buttons(CancelButton(self), OK))
self.set_layout(vbox)
+ OK.setDefault(True)
self.raise_()
if not self.exec_():