tfix #4077 - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit 6f0a7ff42026966f7df8b3b8840f519e1b6b41e8
 (DIR) parent b3bd166620b6ca4eda82685611aa9d838a126c5b
 (HTM) Author: SomberNight <somber.night@protonmail.com>
       Date:   Fri,  9 Mar 2018 01:38:35 +0100
       
       fix #4077
       
       Diffstat:
         M gui/qt/transaction_dialog.py        |       4 ++--
         M lib/wallet.py                       |       3 +++
       
       2 files changed, 5 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py
       t@@ -182,8 +182,8 @@ class TxDialog(QDialog, MessageBoxMixin):
                    if success:
                        self.prompt_if_unsaved = True
                        self.saved = False
       -            self.save_button.setDisabled(False)
       -            self.save_button.setToolTip("")
       +                self.save_button.setDisabled(False)
       +                self.save_button.setToolTip("")
                    self.update()
                    self.main_window.pop_top_level_window(self)
        
 (DIR) diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -778,6 +778,9 @@ class Abstract_Wallet(PrintError):
                    return conflicting_txns
        
            def add_transaction(self, tx_hash, tx):
       +        assert tx_hash, tx_hash
       +        assert tx, tx
       +        assert tx.is_complete()
                # we need self.transaction_lock but get_tx_height will take self.lock
                # so we need to take that too here, to enforce order of locks
                with self.lock, self.transaction_lock: