mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 14:04:23 +02:00
Fixed JSON parsing
This commit is contained in:
parent
1121773154
commit
c664b4a087
1 changed files with 2 additions and 2 deletions
|
@ -238,9 +238,9 @@ void ModelUploader::checkJSON(const QJsonObject& jsonResponse) {
|
||||||
callbackParams.updateReciever = this;
|
callbackParams.updateReciever = this;
|
||||||
callbackParams.updateSlot = SLOT(uploadUpdate(qint64, qint64));
|
callbackParams.updateSlot = SLOT(uploadUpdate(qint64, qint64));
|
||||||
|
|
||||||
if (jsonResponse.contains("exists") && jsonResponse.value("exists").toString() == "true") {
|
if (jsonResponse.contains("exists") && jsonResponse.value("exists").toBool()) {
|
||||||
qDebug() << "exists : true";
|
qDebug() << "exists : true";
|
||||||
if (jsonResponse.contains("can_update") && jsonResponse.value("can_update").toString() == "true") {
|
if (jsonResponse.contains("can_update") && jsonResponse.value("can_update").toBool()) {
|
||||||
qDebug() << "can_update : true";
|
qDebug() << "can_update : true";
|
||||||
|
|
||||||
AccountManager::getInstance().authenticatedRequest(MODEL_URL + "/" + QFileInfo(_url).baseName(),
|
AccountManager::getInstance().authenticatedRequest(MODEL_URL + "/" + QFileInfo(_url).baseName(),
|
||||||
|
|
Loading…
Reference in a new issue