diff options
| author | Jonas Schnelli <[email protected]> | 2016-09-07 16:03:08 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-09-07 16:05:27 +0200 |
| commit | 04802930d4e1f565b3c36e1a806fbe9cd4809937 (patch) | |
| tree | aae908ed94e9ad7750bd877c4a1be03d905f8b07 /src | |
| parent | Merge #8594: Do not add random inbound peers to addrman. (diff) | |
| download | discoin-04802930d4e1f565b3c36e1a806fbe9cd4809937.tar.xz discoin-04802930d4e1f565b3c36e1a806fbe9cd4809937.zip | |
[Qt][CoinControl] fix UI bug that could result in paying unexpected fee
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/sendcoinsdialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 3e96bb18c..8433818a6 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -589,6 +589,9 @@ void SendCoinsDialog::updateGlobalFeeVariables() { nTxConfirmTarget = defaultConfirmTarget - ui->sliderSmartFee->value(); payTxFee = CFeeRate(0); + + // set nMinimumTotalFee to 0 to not accidentally pay a custom fee + CoinControlDialog::coinControl->nMinimumTotalFee = 0; } else { @@ -781,7 +784,7 @@ void SendCoinsDialog::coinControlUpdateLabels() ui->radioCustomAtLeast->setVisible(true); // only enable the feature if inputs are selected - ui->radioCustomAtLeast->setEnabled(CoinControlDialog::coinControl->HasSelected()); + ui->radioCustomAtLeast->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked() &&CoinControlDialog::coinControl->HasSelected()); } else { |