Merge pull request #1146 from andreabonel/master_issue_1144

Elements-qt: Fix arrows to increase/decrease Amount
This commit is contained in:
Pablo Greco 2022-08-18 13:59:45 -03:00 committed by GitHub
commit 0be72f4c39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ public:
currentSingleStep = 100000000; // a whole asset
}
}
val.second = val.second + steps * singleStep;
val.second = val.second + steps * currentSingleStep;
val.second = qMax(val.second, CAmount(0));
val.second = qBound(m_min_amount, val.second, m_max_amount);
// FIXME: Add this back in when assets can have > MAX_MONEY