mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
[Qt][CoinControl] fix UI bug that could result in paying unexpected fee
Github-Pull: #8678
Rebased-From: 04802930d4
This commit is contained in:
committed by
Luke Dashjr
parent
6b07362b37
commit
8e03382279
@@ -592,6 +592,9 @@ void SendCoinsDialog::updateGlobalFeeVariables()
|
|||||||
{
|
{
|
||||||
nTxConfirmTarget = defaultConfirmTarget - ui->sliderSmartFee->value();
|
nTxConfirmTarget = defaultConfirmTarget - ui->sliderSmartFee->value();
|
||||||
payTxFee = CFeeRate(0);
|
payTxFee = CFeeRate(0);
|
||||||
|
|
||||||
|
// set nMinimumTotalFee to 0 to not accidentally pay a custom fee
|
||||||
|
CoinControlDialog::coinControl->nMinimumTotalFee = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -790,7 +793,7 @@ void SendCoinsDialog::coinControlUpdateLabels()
|
|||||||
ui->radioCustomAtLeast->setVisible(true);
|
ui->radioCustomAtLeast->setVisible(true);
|
||||||
|
|
||||||
// only enable the feature if inputs are selected
|
// 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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user