aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2016-09-09 14:28:48 +0200
committerJonas Schnelli <[email protected]>2016-09-09 14:34:03 +0200
commit702e6e059b3d6a000ef2bf8424ab1e3fa7115ea2 (patch)
tree9279975b8caea15640ede832400d5acf3f49c431 /src
parentMerge #8681: Performance Regression Fix: Pre-Allocate txChanged vector (diff)
parent[Qt][CoinControl] fix UI bug that could result in paying unexpected fee (diff)
downloaddiscoin-702e6e059b3d6a000ef2bf8424ab1e3fa7115ea2.tar.xz
discoin-702e6e059b3d6a000ef2bf8424ab1e3fa7115ea2.zip
Merge #8678: [Qt][CoinControl] fix UI bug that could result in paying unexpected fee
0480293 [Qt][CoinControl] fix UI bug that could result in paying unexpected fee (Jonas Schnelli)
Diffstat (limited to 'src')
-rw-r--r--src/qt/sendcoinsdialog.cpp5
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
{