commit 636fdc18a5855247078317dbdd59bd6a6a7d9234 parent f38cc4780239085ebe85c9cd027fb25efae25bc0 Author: thomasv <thomasv@gitorious> Date: Sun, 15 Sep 2013 12:34:07 +0200 new_account_dialog triggers payto Diffstat:
M | gui/gui_classic/main_window.py | | | 14 | ++++---------- |
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/gui/gui_classic/main_window.py b/gui/gui_classic/main_window.py @@ -1374,17 +1374,11 @@ class ElectrumWindow(QMainWindow): e.setReadOnly(True) vbox.addWidget(e) - ok_button = QPushButton(_("OK")) - ok_button.setDefault(True) - ok_button.clicked.connect(dialog.accept) - - hbox = QHBoxLayout() - hbox.addStretch(1) - hbox.addWidget(ok_button) - vbox.addLayout(hbox) - + vbox.addLayout(ok_cancel_buttons(dialog)) dialog.setLayout(vbox) - dialog.exec_() + r = dialog.exec_() + if r: + self.payto(addr)