URI: 
       tfix plugin restore: wallet_type - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit c130ff6715738436d7db8506379d2471c313f499
   DIR parent b24f67fe9d0eec787b39a951b240ef66a6deae49
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Tue, 26 Aug 2014 17:58:17 +0200
       
       fix plugin restore: wallet_type
       
       Diffstat:
         M gui/qt/installwizard.py             |       1 +
         M plugins/trezor.py                   |       2 ++
       
       2 files changed, 3 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py
       t@@ -538,6 +538,7 @@ class InstallWizard(QDialog):
                        wallet.create_main_account(password)
        
                    else:
       +                self.storage.put('wallet_type', t)
                        wallet = run_hook('installwizard_restore', self, self.storage)
                        if not wallet:
                            return
   DIR diff --git a/plugins/trezor.py b/plugins/trezor.py
       t@@ -81,6 +81,8 @@ class Plugin(BasePlugin):
                wallet_types.append(('trezor', _("Trezor wallet"), TrezorWallet))
        
            def installwizard_restore(self, wizard, storage):
       +        if storage.get('wallet_type') != 'trezor': 
       +            return
                wallet = TrezorWallet(storage)
                try:
                    wallet.create_main_account(None)