commit 101fe08ac8270631e484ab06785d663d3f872673
parent 9a3ca0dc310d58cef1428d5cfaa200c3b4fd1754
Author: ThomasV <thomasv@gitorious>
Date: Tue, 1 Jul 2014 08:35:28 +0200
fix: abort signing thread if wallet is watching only
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -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)