tfix: abort signing thread if wallet is watching only - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 101fe08ac8270631e484ab06785d663d3f872673
DIR parent 9a3ca0dc310d58cef1428d5cfaa200c3b4fd1754
HTML Author: ThomasV <thomasv@gitorious>
Date: Tue, 1 Jul 2014 08:35:28 +0200
fix: abort signing thread if wallet is watching only
Diffstat:
M gui/qt/main_window.py | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
t@@ -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)