From 268dcbcac5a1e7ee650dad0849323f9546cd3459 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 24 Jan 2016 23:18:41 +0900 Subject: [PATCH] Trezor: multi-device window parenting fix --- lib/plugins.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/plugins.py b/lib/plugins.py index 5ff05ea6b..b528668a1 100644 --- a/lib/plugins.py +++ b/lib/plugins.py @@ -374,6 +374,9 @@ class DeviceMgr(PrintError): if info: client = self.client_lookup(info.device.id_) if client and not client.features.bootloader_mode: + # An unpaired client might have another wallet's handler + # from a prior scan. Replace to fix dialog parenting. + client.handler = wallet.handler # This will trigger a PIN/passphrase entry request client_first_address = client.first_address(derivation) if client_first_address == first_address: