From 2880c26d871aefce87a63d89fd156a8d793280ce Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 21 Jan 2020 15:12:25 +0100 Subject: [PATCH] qt broadcast tx: don't complain about being "offline" for partial tx --- electrum/gui/qt/main_window.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index 32ebd4e26..cbe4fe30b 100644 --- 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):