URI: 
       tfix plugin load_wallet hook - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit bf50bc45efea162a01583ea47a20791494909dc5
   DIR parent e31ac7905d8a4e986fb0ce00004c9030227a7014
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Thu, 11 Jun 2015 02:13:12 +0200
       
       fix plugin load_wallet hook
       
       Diffstat:
         M plugins/btchipwallet.py             |       2 ++
         M plugins/trustedcoin.py              |       2 ++
       
       2 files changed, 4 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/plugins/btchipwallet.py b/plugins/btchipwallet.py
       t@@ -74,6 +74,8 @@ class Plugin(BasePlugin):
        
            @hook
            def load_wallet(self, wallet, window):
       +        self.wallet = wallet
       +        self.window = window
                if self.btchip_is_connected():
                    if not self.wallet.check_proper_device():
                        QMessageBox.information(self.window, _('Error'), _("This wallet does not match your BTChip device"), _('OK'))
   DIR diff --git a/plugins/trustedcoin.py b/plugins/trustedcoin.py
       t@@ -323,6 +323,8 @@ class Plugin(BasePlugin):
        
            @hook
            def load_wallet(self, wallet, window):
       +        self.wallet = wallet
       +        self.window = window
                self.trustedcoin_button = StatusBarButton( QIcon(":icons/trustedcoin.png"), _("Network"), self.settings_dialog)
                self.window.statusBar().addPermanentWidget(self.trustedcoin_button)
                self.xpub = self.wallet.master_public_keys.get('x1/')