mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge pull request #1222 from andreabonel/qt_avoid_mixing_assets_when_using_all_the_available
Elements-qt: Avoid mixing assets when using all the available balance
This commit is contained in:
commit
63d79dda82
1 changed files with 1 additions and 1 deletions
|
|
@ -781,7 +781,7 @@ void SendCoinsDialog::useAvailableBalance(SendCoinsEntry* entry)
|
|||
CAmount amount = valueFor(model->wallet().getAvailableBalance(*m_coin_control), ::policyAsset);
|
||||
for (int i = 0; i < ui->entries->count(); ++i) {
|
||||
SendCoinsEntry* e = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
|
||||
if (e && !e->isHidden() && e != entry) {
|
||||
if (e && !e->isHidden() && e != entry && e->getValue().asset == ::policyAsset) {
|
||||
amount -= e->getValue().asset_amount;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue