From 624de1d43c5e31f90e768a50ef9025ac3a763a72 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 24 Oct 2024 16:40:02 +0200 Subject: [PATCH] qml: show invalid derivation path message to user in WCScriptAndDerivation --- electrum/gui/qml/components/wizard/WCScriptAndDerivation.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/wizard/WCScriptAndDerivation.qml b/electrum/gui/qml/components/wizard/WCScriptAndDerivation.qml index 3a0ae5923..c7d7f2781 100644 --- a/electrum/gui/qml/components/wizard/WCScriptAndDerivation.qml +++ b/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()