@ -843,6 +843,9 @@ class ElectrumWindow:
self.show_message(str(e))
return
if label:
self.wallet.labels[tx.hash()] = label
status, msg = self.wallet.sendtx( tx )
if status:
self.show_message( "payment sent.\n" + msg )
@ -457,6 +457,9 @@ def pay_to(recipient, amount, fee, label):
droid.dialogDismiss()
r, h = wallet.sendtx( tx )
@ -914,6 +914,9 @@ class ElectrumWindow(QMainWindow):
if self.wallet.seed:
h = self.wallet.send_tx(tx)
waiting_dialog(lambda: False if self.wallet.tx_event.isSet() else _("Please wait..."))
@ -265,6 +265,9 @@ class ElectrumGui:
if self.str_description:
self.wallet.labels[tx.hash()] = self.str_description
self.show_message(_("Please wait..."), getchar=False)
self.wallet.tx_event.wait()
@ -689,9 +689,6 @@ class Wallet:
if address not in self.addressbook and not self.is_mine(address):
self.addressbook.append(address)
#if label:
# self.labels[tx.hash()] = label
return tx
def sign_tx(self, tx, password):