diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-10-15 20:19:40 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2020-10-20 13:44:43 +0000 |
commit | 6608fec332eac4dfd91138bc4fe2e1b5c7bb758f (patch) | |
tree | 747e71a23fea7f23c7ae52fe55769b83eeaa33cb /src/qt/createwalletdialog.cpp | |
parent | 7b54d768e1514b328e1ac108d3db2f1bac3ba7ff (diff) |
GUI: Create Wallet: Nicely disable descriptor wallet checkbox if sqlite support not compiled in
Diffstat (limited to 'src/qt/createwalletdialog.cpp')
-rw-r--r-- | src/qt/createwalletdialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/createwalletdialog.cpp b/src/qt/createwalletdialog.cpp index 5056e487fc..38c6bfe56a 100644 --- a/src/qt/createwalletdialog.cpp +++ b/src/qt/createwalletdialog.cpp @@ -34,6 +34,12 @@ CreateWalletDialog::CreateWalletDialog(QWidget* parent) : 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); + ui->descriptor_checkbox->setChecked(false); +#endif } CreateWalletDialog::~CreateWalletDialog() |