set label before showing tx window

This commit is contained in:
ThomasV 2015-04-22 12:10:58 +02:00
parent 2753a0bbea
commit 0d4d06c58b
1 changed files with 2 additions and 2 deletions

View File

@ -1128,12 +1128,12 @@ class ElectrumWindow(QMainWindow):
return tx
def sign_done(tx):
if label and tx.is_complete():
self.wallet.set_label(tx.hash(), label)
if not tx.is_complete() or self.config.get('show_before_broadcast'):
self.show_transaction(tx)
self.do_clear()
return
if label:
self.wallet.set_label(tx.hash(), label)
self.broadcast_transaction(tx)
# keep a reference to WaitingDialog or the gui might crash