URI: 
       tfix labels plugin init() - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 43bac658da441ca40a337af69f0a87f2a688bc06
   DIR parent 56fe62938585c6e6e9c5f797d5aba99c69ee9436
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Thu,  8 Aug 2013 05:47:24 +0200
       
       fix labels plugin init()
       
       Diffstat:
         M plugins/labels.py                   |       5 ++---
       
       1 file changed, 2 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/plugins/labels.py b/plugins/labels.py
       t@@ -45,9 +45,7 @@ class Plugin(BasePlugin):
        
            def init(self):
                self.target_host = 'labelectrum.herokuapp.com'
       -        self.wallet = gui.wallet
       -        self.gui = gui
       -        self.config = gui.config
       +        self.wallet = self.gui.wallet
                self.labels = self.wallet.labels
                self.transactions = self.wallet.transactions
                mpk = self.wallet.master_public_keys["m/0'/"][1]
       t@@ -145,6 +143,7 @@ class Plugin(BasePlugin):
        
            def enable(self):
                if not self.auth_token(): # First run, throw plugin settings in your face
       +            self.init()
                    if self.settings_dialog():
                        self.set_enabled(True)
                        return True