Skip to content

Commit

Permalink
Merge 63d79dd into merged_master (Elements PR ElementsProject#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
delta1 committed Jul 3, 2023
2 parents b6d963e + 63d79dd commit 9baaa43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,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;
}
}
Expand Down

0 comments on commit 9baaa43

Please sign in to comment.