electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit a0b031c7df24ad32632db2ff4abc71a86b3ec5df
parent 50dcee69d069a18374463ade2ffa85f0d3e83c40
Author: Neil Booth <kyuupichan@gmail.com>
Date:   Sat,  5 Dec 2015 21:47:17 +0900

Fix labels plugin wallet popping bug.

Diffstat:
Mplugins/labels/labels.py | 3+++
Mplugins/labels/qt.py | 3+--
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/plugins/labels/labels.py b/plugins/labels/labels.py @@ -147,3 +147,6 @@ class LabelsPlugin(BasePlugin): t = threading.Thread(target=self.pull_thread, args=(wallet, False)) t.setDaemon(True) t.start() + + def stop_wallet(self, wallet): + self.wallets.pop(wallet, None) diff --git a/plugins/labels/qt.py b/plugins/labels/qt.py @@ -62,5 +62,4 @@ class Plugin(LabelsPlugin): @hook def on_close_window(self, window): - self.wallets.pop(window.wallet) - + self.stop_wallet(window.wallet)