mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-24 07:51:24 +02:00
qt: fix issue when disabling the auto-enabled blank wallet checkbox
This commit makes it so that when the `Blank Wallet` checkbox is auto-selected after the user selects 'Disable Private' keys, unselecting it will also unselect the 'Disable Private Keys' checkbox, which in turn re-enables the 'Encrypt Wallet' checkbox.
This commit is contained in:
parent
da8c7edffe
commit
915e34112b
@ -53,6 +53,12 @@ CreateWalletDialog::CreateWalletDialog(QWidget* parent) :
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connect(ui->blank_wallet_checkbox, &QCheckBox::toggled, [this](bool checked) {
|
||||||
|
if (!checked) {
|
||||||
|
ui->disable_privkeys_checkbox->setChecked(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
#ifndef USE_SQLITE
|
#ifndef USE_SQLITE
|
||||||
ui->descriptor_checkbox->setToolTip(tr("Compiled without sqlite support (required for descriptor wallets)"));
|
ui->descriptor_checkbox->setToolTip(tr("Compiled without sqlite support (required for descriptor wallets)"));
|
||||||
ui->descriptor_checkbox->setEnabled(false);
|
ui->descriptor_checkbox->setEnabled(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user