mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
json capital
This commit is contained in:
parent
6050d5873c
commit
eaa9c4fdf8
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ bool PollJob::finished()
|
||||||
qDebug() << Q_FUNC_INFO << ">" << jsonData << "<" << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
qDebug() << Q_FUNC_INFO << ">" << jsonData << "<" << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||||
QVariantMap status = QtJson::parse(QString::fromUtf8(jsonData), ok).toMap();
|
QVariantMap status = QtJson::parse(QString::fromUtf8(jsonData), ok).toMap();
|
||||||
if (!ok || status.isEmpty()) {
|
if (!ok || status.isEmpty()) {
|
||||||
_item._errorString = tr("Invalid json reply from the poll URL");
|
_item._errorString = tr("Invalid JSON reply from the poll URL");
|
||||||
_item._status = SyncFileItem::NormalError;
|
_item._status = SyncFileItem::NormalError;
|
||||||
emit finishedSignal();
|
emit finishedSignal();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue