Skip to content

Commit 915e341

Browse files
committed
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.
1 parent da8c7ed commit 915e341

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/qt/createwalletdialog.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ CreateWalletDialog::CreateWalletDialog(QWidget* parent) :
5353
}
5454
});
5555

56+
connect(ui->blank_wallet_checkbox, &QCheckBox::toggled, [this](bool checked) {
57+
if (!checked) {
58+
ui->disable_privkeys_checkbox->setChecked(false);
59+
}
60+
});
61+
5662
#ifndef USE_SQLITE
5763
ui->descriptor_checkbox->setToolTip(tr("Compiled without sqlite support (required for descriptor wallets)"));
5864
ui->descriptor_checkbox->setEnabled(false);

0 commit comments

Comments
 (0)