diff options
| author | Russell Yanofsky <[email protected]> | 2017-04-17 18:56:44 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2018-04-04 16:52:40 -0400 |
| commit | a0704a8996bb950ae3c4d5b5a30e9dfe34cde1d3 (patch) | |
| tree | d7dc5b382640f965bdff98baa1aa4e21a7af5d20 /src/qt/receivecoinsdialog.cpp | |
| parent | Remove direct bitcoin calls from qt/optionsdialog.cpp (diff) | |
| download | discoin-a0704a8996bb950ae3c4d5b5a30e9dfe34cde1d3.tar.xz discoin-a0704a8996bb950ae3c4d5b5a30e9dfe34cde1d3.zip | |
Remove most direct bitcoin calls from qt/walletmodel.cpp
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 c8b6366db..70e11f029 100644 --- a/src/qt/receivecoinsdialog.cpp +++ b/src/qt/receivecoinsdialog.cpp @@ -95,13 +95,13 @@ void ReceiveCoinsDialog::setModel(WalletModel *_model) columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH, this); // configure bech32 checkbox, disable if launched with legacy as default: - if (model->getDefaultAddressType() == OutputType::BECH32) { + if (model->wallet().getDefaultAddressType() == OutputType::BECH32) { ui->useBech32->setCheckState(Qt::Checked); } else { ui->useBech32->setCheckState(Qt::Unchecked); } - ui->useBech32->setVisible(model->getDefaultAddressType() != OutputType::LEGACY); + ui->useBech32->setVisible(model->wallet().getDefaultAddressType() != OutputType::LEGACY); } } @@ -144,7 +144,7 @@ void ReceiveCoinsDialog::on_receiveButton_clicked() QString address; QString label = ui->reqLabel->text(); /* Generate new receiving address */ - OutputType address_type = model->getDefaultAddressType(); + OutputType address_type = model->wallet().getDefaultAddressType(); if (address_type != OutputType::LEGACY) { address_type = ui->useBech32->isChecked() ? OutputType::BECH32 : OutputType::P2SH_SEGWIT; } |