diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-10-19 17:38:41 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-11-18 11:56:12 -0500 |
commit | ee47f11f7399ec3a4330ea1f2fc388c7e32959d6 (patch) | |
tree | 30597a5c2a080ab8838aed9acc8be5e53a0d98df | |
parent | 71e40b33bd1e72ccf5d82e1d3f8b481f8e965492 (diff) |
GUI: Force descriptor wallets when BDB is not compiled
-rw-r--r-- | src/qt/createwalletdialog.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/qt/createwalletdialog.cpp b/src/qt/createwalletdialog.cpp index 2ded6a1d89..3945159c26 100644 --- a/src/qt/createwalletdialog.cpp +++ b/src/qt/createwalletdialog.cpp @@ -51,12 +51,15 @@ CreateWalletDialog::CreateWalletDialog(QWidget* parent) : } }); - #ifndef USE_SQLITE +#ifndef USE_SQLITE ui->descriptor_checkbox->setToolTip(tr("Compiled without sqlite support (required for descriptor wallets)")); ui->descriptor_checkbox->setEnabled(false); ui->descriptor_checkbox->setChecked(false); - #endif - +#endif +#ifndef USE_BDB + ui->descriptor_checkbox->setEnabled(false); + ui->descriptor_checkbox->setChecked(true); +#endif } CreateWalletDialog::~CreateWalletDialog() |