commit 2880c26d871aefce87a63d89fd156a8d793280ce
parent cb41a0fe89fd96c5ad28fd65377831edb2566bdc
Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 21 Jan 2020 15:12:25 +0100
qt broadcast tx: don't complain about being "offline" for partial tx
Diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py
@@ -1561,13 +1561,14 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
d.show()
def broadcast_or_show(self, tx: Transaction):
+ if not tx.is_complete():
+ self.show_transaction(tx)
+ return
if not self.network:
self.show_error(_("You can't broadcast a transaction without a live network connection."))
self.show_transaction(tx)
- elif not tx.is_complete():
- self.show_transaction(tx)
- else:
- self.broadcast_transaction(tx)
+ return
+ self.broadcast_transaction(tx)
@protected
def sign_tx(self, tx, *, callback, external_keypairs, password):