From 45a55e258f36144a9315db9a6e45145de4f7f80f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 12 Sep 2014 19:24:01 +0200 Subject: [PATCH] trezor: check device on load_wallet --- plugins/trezor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/trezor.py b/plugins/trezor.py index 41cda989..68fda7be 100644 --- a/plugins/trezor.py +++ b/plugins/trezor.py @@ -82,6 +82,8 @@ class Plugin(BasePlugin): @hook def load_wallet(self, wallet): self.wallet = wallet + if not self.wallet.check_proper_device(): + QMessageBox.information(None, _('Error'), _("This wallet does not match your Trezor device"), _('OK')) @hook def installwizard_restore(self, wizard, storage):