fix: abort signing thread if wallet is watching only
authorThomasV <thomasv@gitorious>
Tue, 1 Jul 2014 06:35:28 +0000 (08:35 +0200)
committerThomasV <thomasv@gitorious>
Tue, 1 Jul 2014 06:35:28 +0000 (08:35 +0200)
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)