From 0aaa9b79d9fb5c7ae4f293a272beab43e5851c83 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Thu, 9 Dec 2010 18:42:31 +0100 Subject: QNetworkReply: set to finished for synchronous requests Since 4.8, QNetworkReply has a setFinished() method, which we need to set to true for synchronous calls. Reviewed-by: Markus Goetz --- src/network/access/qnetworkreplyimpl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp index feb869b..70c318c 100644 --- a/src/network/access/qnetworkreplyimpl.cpp +++ b/src/network/access/qnetworkreplyimpl.cpp @@ -117,6 +117,7 @@ void QNetworkReplyImplPrivate::_q_startOperation() if (backend->isSynchronous()) { state = Finished; + q_func()->setFinished(true); } else { if (state != Finished) { if (operation == QNetworkAccessManager::GetOperation) -- cgit v0.12