Skip to content

Commit

Permalink
[Qt] fix coincontrol update issue when deleting a send coin entry
Browse files Browse the repository at this point in the history
Github-Pull: #7282
Rebased-From: 621bd69
  • Loading branch information
jonasschnelli authored and laanwj committed Jan 5, 2016
1 parent bfdaa3c commit 5cadf3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,6 @@ SendCoinsEntry *SendCoinsDialog::addEntry()
connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels()));
connect(entry, SIGNAL(subtractFeeFromAmountChanged()), this, SLOT(coinControlUpdateLabels()));

updateTabsAndLabels();

// Focus the field, so that entry can start immediately
entry->clear();
entry->setFocus();
Expand All @@ -383,6 +381,8 @@ SendCoinsEntry *SendCoinsDialog::addEntry()
QScrollBar* bar = ui->scrollArea->verticalScrollBar();
if(bar)
bar->setSliderPosition(bar->maximum());

updateTabsAndLabels();
return entry;
}

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

0 comments on commit 5cadf3e

Please sign in to comment.