electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 1ffc14df76e0142d8daf324340f0dc84e4cb073d
parent 43fd684d979307c68b2270456bfe024fceb6232f
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:
Mgui/qt/installwizard.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py @@ -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_():