mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
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)
This commit is contained in:
commit
702e6e059b
@ -589,6 +589,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
|
||||||
{
|
{
|
||||||
@ -781,7 +784,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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user