trezor: fix is_xprv

This commit is contained in:
ThomasV 2017-01-06 22:47:10 +01:00
parent 6d33e1a35b
commit b16800864b

View file

@ -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