mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge pull request #7282
621bd69
[Qt] fix coincontrol update issue when deleting a send coin entry (Jonas Schnelli)
This commit is contained in:
commit
aa413687de
@ -373,8 +373,6 @@ SendCoinsEntry *SendCoinsDialog::addEntry()
|
|||||||
connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels()));
|
connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels()));
|
||||||
connect(entry, SIGNAL(subtractFeeFromAmountChanged()), this, SLOT(coinControlUpdateLabels()));
|
connect(entry, SIGNAL(subtractFeeFromAmountChanged()), this, SLOT(coinControlUpdateLabels()));
|
||||||
|
|
||||||
updateTabsAndLabels();
|
|
||||||
|
|
||||||
// Focus the field, so that entry can start immediately
|
// Focus the field, so that entry can start immediately
|
||||||
entry->clear();
|
entry->clear();
|
||||||
entry->setFocus();
|
entry->setFocus();
|
||||||
@ -383,6 +381,8 @@ SendCoinsEntry *SendCoinsDialog::addEntry()
|
|||||||
QScrollBar* bar = ui->scrollArea->verticalScrollBar();
|
QScrollBar* bar = ui->scrollArea->verticalScrollBar();
|
||||||
if(bar)
|
if(bar)
|
||||||
bar->setSliderPosition(bar->maximum());
|
bar->setSliderPosition(bar->maximum());
|
||||||
|
|
||||||
|
updateTabsAndLabels();
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -808,7 +808,7 @@ void SendCoinsDialog::coinControlUpdateLabels()
|
|||||||
for(int i = 0; i < ui->entries->count(); ++i)
|
for(int i = 0; i < ui->entries->count(); ++i)
|
||||||
{
|
{
|
||||||
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
|
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
|
||||||
if(entry)
|
if(entry && !entry->isHidden())
|
||||||
{
|
{
|
||||||
SendCoinsRecipient rcp = entry->getValue();
|
SendCoinsRecipient rcp = entry->getValue();
|
||||||
CoinControlDialog::payAmounts.append(rcp.amount);
|
CoinControlDialog::payAmounts.append(rcp.amount);
|
||||||
|
Loading…
Reference in New Issue
Block a user