aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarol Rodriguez <jarolrod@tutanota.com>2021-03-09 19:32:51 -0500
committerJarol Rodriguez <jarolrod@tutanota.com>2021-03-23 13:13:30 -0400
commit915e34112b5a4c2ef391d7e3706603bcd6f62a2a (patch)
treebefe9f1cb4da44347e20e43b64613e1ee6984aa9
parentda8c7edffe0c9efe99d56ec9e8b96b3b4e3e275f (diff)
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.
-rw-r--r--src/qt/createwalletdialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/createwalletdialog.cpp b/src/qt/createwalletdialog.cpp
index 1467801522..113bd30a0c 100644
--- a/src/qt/createwalletdialog.cpp
+++ b/src/qt/createwalletdialog.cpp
@@ -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
ui->descriptor_checkbox->setToolTip(tr("Compiled without sqlite support (required for descriptor wallets)"));
ui->descriptor_checkbox->setEnabled(false);