json capital

This commit is contained in:
Volkan Gezer 2015-02-05 20:41:08 +01:00
parent 6050d5873c
commit eaa9c4fdf8

View file

@ -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;