Browse Source

qml: show invalid derivation path message to user in WCScriptAndDerivation

master
Sander van Grieken 1 year ago
parent
commit
624de1d43c
No known key found for this signature in database
GPG Key ID: 9BCF8209EA402EBA
  1. 4
      electrum/gui/qml/components/wizard/WCScriptAndDerivation.qml

4
electrum/gui/qml/components/wizard/WCScriptAndDerivation.qml

@ -48,8 +48,10 @@ WizardComponent {
var p = isMultisig ? getMultisigScriptTypePurposeDict() : getScriptTypePurposeDict()
if (!scripttypegroup.checkedButton.scripttype in p)
return
if (!bitcoin.verifyDerivationPath(derivationpathtext.text))
if (!bitcoin.verifyDerivationPath(derivationpathtext.text)) {
validationtext.text = qsTr('Invalid derivation path')
return
}
if (isMultisig && cosigner) {
apply()

Loading…
Cancel
Save