new_account_dialog triggers payto

This commit is contained in:
thomasv 2013-09-15 12:34:07 +02:00
parent f38cc47802
commit 636fdc18a5
1 changed files with 4 additions and 10 deletions

View File

@ -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)