electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c130ff6715738436d7db8506379d2471c313f499
parent b24f67fe9d0eec787b39a951b240ef66a6deae49
Author: ThomasV <thomasv@gitorious>
Date:   Tue, 26 Aug 2014 17:58:17 +0200

fix plugin restore: wallet_type

Diffstat:
Mgui/qt/installwizard.py | 1+
Mplugins/trezor.py | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py @@ -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 diff --git a/plugins/trezor.py b/plugins/trezor.py @@ -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)