diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 10:22:00 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 10:23:09 +0900 |
commit | ff85bba352ee23d6e2689804da40a9433a117e71 (patch) | |
tree | 39387a2673a9f9c09f12020fffdbb667c8e2f082 | |
parent | fc4daac8862ad6a9824ec86628f222d74ce21201 (diff) | |
download | libquotient-ff85bba352ee23d6e2689804da40a9433a117e71.tar.gz libquotient-ff85bba352ee23d6e2689804da40a9433a117e71.zip |
Fix a typo leading to cache never working
-rw-r--r-- | connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connection.cpp b/connection.cpp index c00a9b61..a57bd8b4 100644 --- a/connection.cpp +++ b/connection.cpp @@ -722,7 +722,7 @@ void Connection::loadState(const QUrl &fromFile) QJsonParseError e; auto jsonDoc = d->cacheToBinary ? QJsonDocument::fromBinaryData(data) : QJsonDocument::fromJson(data, &e); - if (e.error == QJsonParseError::NoError) + if (e.error != QJsonParseError::NoError) { qCWarning(MAIN) << "Cache file not found or broken, discarding"; return; |