diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-03-31 18:00:26 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-03-31 17:56:12 -0400 |
commit | faf62d9415d74e69356d2b64c134184814938708 (patch) | |
tree | 76b452da65e5fa1b6134aac4be0a134d67b2a30c /src/qt/receivecoinsdialog.cpp | |
parent | 00ca24b68fc472e0deeda04a21297f5e38214b5a (diff) | |
download | bitcoin-faf62d9415d74e69356d2b64c134184814938708.tar.xz |
gui: Generate bech32 addresses by default
Diffstat (limited to 'src/qt/receivecoinsdialog.cpp')
-rw-r--r-- | src/qt/receivecoinsdialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/receivecoinsdialog.cpp b/src/qt/receivecoinsdialog.cpp index 22a79a12bb..fc58090dcd 100644 --- a/src/qt/receivecoinsdialog.cpp +++ b/src/qt/receivecoinsdialog.cpp @@ -95,9 +95,9 @@ void ReceiveCoinsDialog::setModel(WalletModel *_model) columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH, this); if (model->wallet().getDefaultAddressType() == OutputType::BECH32) { - ui->useBech32->setCheckState(Qt::Checked); + ui->useLegacyAddress->setCheckState(Qt::Unchecked); } else { - ui->useBech32->setCheckState(Qt::Unchecked); + ui->useLegacyAddress->setCheckState(Qt::Checked); } // Set the button to be enabled or disabled based on whether the wallet can give out new addresses. @@ -150,7 +150,7 @@ void ReceiveCoinsDialog::on_receiveButton_clicked() QString label = ui->reqLabel->text(); /* Generate new receiving address */ OutputType address_type; - if (ui->useBech32->isChecked()) { + if (!ui->useLegacyAddress->isChecked()) { address_type = OutputType::BECH32; } else { address_type = model->wallet().getDefaultAddressType(); |