qml: check passphrase not empty when checked
This commit is contained in:
@@ -9,7 +9,7 @@ import "../controls"
|
||||
WizardComponent {
|
||||
securePage: true
|
||||
|
||||
valid: seedtext.text != ''
|
||||
valid: seedtext.text != '' && extendcb.checked ? customwordstext.text != '' : true
|
||||
|
||||
function apply() {
|
||||
wizard_data['seed'] = seedtext.text
|
||||
|
||||
@@ -68,6 +68,9 @@ WizardComponent {
|
||||
valid = false
|
||||
validationtext.text = ''
|
||||
|
||||
if (extendcb.checked && customwordstext.text == '')
|
||||
return
|
||||
|
||||
var validSeed = bitcoin.verifySeed(seedtext.text, seed_variant_cb.currentValue, wizard_data['wallet_type'])
|
||||
if (!cosigner || !validSeed) {
|
||||
valid = validSeed
|
||||
|
||||
Reference in New Issue
Block a user