From a0b031c7df24ad32632db2ff4abc71a86b3ec5df Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 5 Dec 2015 21:47:17 +0900 Subject: [PATCH] Fix labels plugin wallet popping bug. --- plugins/labels/labels.py | 3 +++ plugins/labels/qt.py | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/labels/labels.py b/plugins/labels/labels.py index 28a51b716..1cd099126 100644 --- 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 index 728f57e62..1cedc9b4d 100644 --- 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)