Fix picDownloadFinished not being called on failure

This commit is contained in:
RickyRister 2025-06-12 22:18:31 -07:00
parent 33946e61bb
commit 20cc63fcdf

View file

@ -121,6 +121,8 @@ QNetworkReply *PictureLoaderWorker::makeRequest(const QUrl &url, PictureLoaderWo
} }
} else if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() == 429) { } else if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() == 429) {
qInfo() << "Too many requests."; qInfo() << "Too many requests.";
} else {
worker->picDownloadFinished(reply);
} }
reply->deleteLater(); reply->deleteLater();
}); });