From 87168282b9281829453de88d69a797f28f0a2f15 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 1 Oct 2015 12:37:46 +0200 Subject: [PATCH] check wallet type in installwizard_load_wallet hook --- plugins/btchipwallet.py | 2 ++ plugins/keepkey.py | 2 ++ plugins/trezor.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/plugins/btchipwallet.py b/plugins/btchipwallet.py index 33a9e6aff..2cc9dd10b 100644 --- a/plugins/btchipwallet.py +++ b/plugins/btchipwallet.py @@ -95,6 +95,8 @@ class Plugin(BasePlugin): @hook def installwizard_load_wallet(self, wallet, window): + if type(wallet) != BTChipWallet: + return self.load_wallet(wallet, window) @hook diff --git a/plugins/keepkey.py b/plugins/keepkey.py index ee2e6aacf..2aba23810 100644 --- a/plugins/keepkey.py +++ b/plugins/keepkey.py @@ -147,6 +147,8 @@ class Plugin(BasePlugin): @hook def installwizard_load_wallet(self, wallet, window): + if type(wallet) != KeepKeyWallet: + return self.load_wallet(wallet, window) @hook diff --git a/plugins/trezor.py b/plugins/trezor.py index 5eb6eb9c0..9e4d5fb88 100644 --- a/plugins/trezor.py +++ b/plugins/trezor.py @@ -147,6 +147,8 @@ class Plugin(BasePlugin): @hook def installwizard_load_wallet(self, wallet, window): + if type(wallet) != TrezorWallet: + return self.load_wallet(wallet, window) @hook