Skip to content

Commit aa41368

Browse files
committed
Merge pull request #7282
621bd69 [Qt] fix coincontrol update issue when deleting a send coin entry (Jonas Schnelli)
2 parents 2078495 + 621bd69 commit aa41368

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,6 @@ SendCoinsEntry *SendCoinsDialog::addEntry()
373373
connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels()));
374374
connect(entry, SIGNAL(subtractFeeFromAmountChanged()), this, SLOT(coinControlUpdateLabels()));
375375

376-
updateTabsAndLabels();
377-
378376
// Focus the field, so that entry can start immediately
379377
entry->clear();
380378
entry->setFocus();
@@ -383,6 +381,8 @@ SendCoinsEntry *SendCoinsDialog::addEntry()
383381
QScrollBar* bar = ui->scrollArea->verticalScrollBar();
384382
if(bar)
385383
bar->setSliderPosition(bar->maximum());
384+
385+
updateTabsAndLabels();
386386
return entry;
387387
}
388388

@@ -808,7 +808,7 @@ void SendCoinsDialog::coinControlUpdateLabels()
808808
for(int i = 0; i < ui->entries->count(); ++i)
809809
{
810810
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
811-
if(entry)
811+
if(entry && !entry->isHidden())
812812
{
813813
SendCoinsRecipient rcp = entry->getValue();
814814
CoinControlDialog::payAmounts.append(rcp.amount);

0 commit comments

Comments
 (0)