URI: 
       tFix labels plugin wallet popping bug. - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit a0b031c7df24ad32632db2ff4abc71a86b3ec5df
   DIR parent 50dcee69d069a18374463ade2ffa85f0d3e83c40
  HTML Author: Neil Booth <kyuupichan@gmail.com>
       Date:   Sat,  5 Dec 2015 21:47:17 +0900
       
       Fix labels plugin wallet popping bug.
       
       Diffstat:
         M plugins/labels/labels.py            |       3 +++
         M plugins/labels/qt.py                |       3 +--
       
       2 files changed, 4 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/plugins/labels/labels.py b/plugins/labels/labels.py
       t@@ -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)
   DIR diff --git a/plugins/labels/qt.py b/plugins/labels/qt.py
       t@@ -62,5 +62,4 @@ class Plugin(LabelsPlugin):
        
            @hook
            def on_close_window(self, window):
       -        self.wallets.pop(window.wallet)
       -
       +        self.stop_wallet(window.wallet)