summaryrefslogtreecommitdiffstats
path: root/src/network/access
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-11-06 13:37:38 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-11-06 15:50:58 (GMT)
commit6cc5e911a3afa2fab5b44d113a9bf2fa2720ab79 (patch)
treeb2a1fbf149d579d528752c3345b3acd45bf5e9f1 /src/network/access
parent2b4c35d66eb4f787b869939bef63a5d7246ffa62 (diff)
downloadQt-6cc5e911a3afa2fab5b44d113a9bf2fa2720ab79.zip
Qt-6cc5e911a3afa2fab5b44d113a9bf2fa2720ab79.tar.gz
Qt-6cc5e911a3afa2fab5b44d113a9bf2fa2720ab79.tar.bz2
QNAM: Do not emit uploadProgress() when reply was aborted
Reviewed-by: Peter Hartmann
Diffstat (limited to 'src/network/access')
-rw-r--r--src/network/access/qnetworkaccessbackend.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/access/qnetworkaccessbackend.cpp b/src/network/access/qnetworkaccessbackend.cpp
index 1a92868..3e2db7a 100644
--- a/src/network/access/qnetworkaccessbackend.cpp
+++ b/src/network/access/qnetworkaccessbackend.cpp
@@ -141,6 +141,8 @@ QNonContiguousByteDevice* QNetworkAccessBackend::createUploadByteDevice()
// and the special backends need to access this.
void QNetworkAccessBackend::emitReplyUploadProgress(qint64 bytesSent, qint64 bytesTotal)
{
+ if (reply->isFinished())
+ return;
reply->emitUploadProgress(bytesSent, bytesTotal);
}