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