mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 17:10:41 +02:00
The balance display didn't get over ~21.1 because the parsed json object int32 is maximal 2147483647, fixed this by parsing it from json to double.
This commit is contained in:
parent
5b62733a36
commit
1e200c3b9c
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ void DataServerAccountInfo::setBalance(qint64 balance) {
|
||||||
|
|
||||||
void DataServerAccountInfo::setBalanceFromJSON(const QJsonObject& jsonObject) {
|
void DataServerAccountInfo::setBalanceFromJSON(const QJsonObject& jsonObject) {
|
||||||
if (jsonObject["status"].toString() == "success") {
|
if (jsonObject["status"].toString() == "success") {
|
||||||
qint64 balanceInSatoshis = jsonObject["data"].toObject()["wallet"].toObject()["balance"].toInt();
|
qint64 balanceInSatoshis = jsonObject["data"].toObject()["wallet"].toObject()["balance"].toDouble();
|
||||||
setBalance(balanceInSatoshis);
|
setBalance(balanceInSatoshis);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue