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