fix: abort signing thread if wallet is watching only

This commit is contained in:
ThomasV 2014-07-01 08:35:28 +02:00
parent 9a3ca0dc31
commit 101fe08ac8
1 changed files with 2 additions and 0 deletions

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