From b16800864b3acf29fc9487e64ef3f3ad986d3237 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 6 Jan 2017 22:47:10 +0100 Subject: [PATCH] trezor: fix is_xprv --- plugins/trezor/qt_generic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/trezor/qt_generic.py b/plugins/trezor/qt_generic.py index 9b8550786..c52f8adb6 100644 --- a/plugins/trezor/qt_generic.py +++ b/plugins/trezor/qt_generic.py @@ -242,7 +242,8 @@ class QtPlugin(QtPluginBase): else: msg = _("Enter the master private key beginning with xprv:") def set_enabled(): - wizard.next_button.setEnabled(Wallet.is_xprv(clean_text(text))) + from electrum.keystore import is_xprv + wizard.next_button.setEnabled(is_xprv(clean_text(text))) text.textChanged.connect(set_enabled) next_enabled = False