aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connection.cpp2
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;