fix: abort signing thread if wallet is watching only
[electrum-nvc.git] / gui / qt / main_window.py
index 3cf27d0..cd46e89 100644 (file)
@@ -1053,6 +1053,8 @@ class ElectrumWindow(QMainWindow):
 
         # sign the tx
         def sign_thread():
+            if self.wallet.is_watching_only():
+                return tx
             keypairs = {}
             try:
                 self.wallet.add_keypairs(tx, keypairs, password)