diff options
| author | Luke Dashjr <[email protected]> | 2020-10-15 20:19:40 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2020-10-20 13:44:43 +0000 |
| commit | 6608fec332eac4dfd91138bc4fe2e1b5c7bb758f (patch) | |
| tree | 747e71a23fea7f23c7ae52fe55769b83eeaa33cb /src/qt/createwalletdialog.cpp | |
| parent | Make sqlite support optional (compile-time) (diff) | |
| download | discoin-6608fec332eac4dfd91138bc4fe2e1b5c7bb758f.tar.xz discoin-6608fec332eac4dfd91138bc4fe2e1b5c7bb758f.zip | |
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 5056e487f..38c6bfe56 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() |