summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkreplyimpl.cpp
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2010-12-09 17:42:31 (GMT)
committerPeter Hartmann <peter.hartmann@nokia.com>2010-12-10 10:01:04 (GMT)
commit0aaa9b79d9fb5c7ae4f293a272beab43e5851c83 (patch)
treed82d82bec49a5ed2dcee94755ef0feb45844da55 /src/network/access/qnetworkreplyimpl.cpp
parent4599758f91319044fa9d135a51653af7b7001aac (diff)
downloadQt-0aaa9b79d9fb5c7ae4f293a272beab43e5851c83.zip
Qt-0aaa9b79d9fb5c7ae4f293a272beab43e5851c83.tar.gz
Qt-0aaa9b79d9fb5c7ae4f293a272beab43e5851c83.tar.bz2
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
Diffstat (limited to 'src/network/access/qnetworkreplyimpl.cpp')
-rw-r--r--src/network/access/qnetworkreplyimpl.cpp1
1 files changed, 1 insertions, 0 deletions
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)