diff --git a/saoricache.cpp b/saoricache.cpp index 5cd4cc2..97730f3 100644 --- a/saoricache.cpp +++ b/saoricache.cpp @@ -93,7 +93,7 @@ request.setUrl(url); auto *reply = SaoriApplication::saori()->manager->get(request); connect(reply,&QNetworkReply::finished,this,[=](){ - if (reply->error() != QNetworkReply::NoError) { + if (reply->error() == QNetworkReply::NoError) { QFile localfile(urlToFilename(url)); if (localfile.exists()) localfile.remove(); localfile.open(QIODevice::WriteOnly);