summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkreplyimpl_p.h
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-06-24 13:59:49 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-06-25 11:00:22 (GMT)
commite5b8db6d4ecc244f7c35ea96a1f4e76fad47f1c4 (patch)
tree9eb36d2a2e5852db5758f4e9ebbe0b7787406e32 /src/network/access/qnetworkreplyimpl_p.h
parent4b9784fcdd7321a5d82b8ae73edd1ae52786d7ad (diff)
downloadQt-e5b8db6d4ecc244f7c35ea96a1f4e76fad47f1c4.zip
Qt-e5b8db6d4ecc244f7c35ea96a1f4e76fad47f1c4.tar.gz
Qt-e5b8db6d4ecc244f7c35ea96a1f4e76fad47f1c4.tar.bz2
QNetworkReplyImpl: Protect against recursive event loops
This fixes a bug that occured together with a QProgressDialog. The signal emission was like: readyRead readyRead readyRead [...] readyRead finished readyRead Now finished should be properly at the ending of this sequence. Task-number: 256630 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/network/access/qnetworkreplyimpl_p.h')
-rw-r--r--src/network/access/qnetworkreplyimpl_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreplyimpl_p.h b/src/network/access/qnetworkreplyimpl_p.h
index 32bfa4c..65b3679 100644
--- a/src/network/access/qnetworkreplyimpl_p.h
+++ b/src/network/access/qnetworkreplyimpl_p.h
@@ -129,6 +129,9 @@ public:
void setup(QNetworkAccessManager::Operation op, const QNetworkRequest &request,
QIODevice *outgoingData);
void setNetworkCache(QAbstractNetworkCache *networkCache);
+
+ void pauseNotificationHandling();
+ void resumeNotificationHandling();
void backendNotify(InternalNotifications notification);
void handleNotifications();
void createCache();
@@ -156,6 +159,8 @@ public:
QIODevice *cacheSaveDevice;
NotificationQueue pendingNotifications;
+ bool notificationHandlingPaused;
+
QUrl urlForLastAuthentication;
#ifndef QT_NO_NETWORKPROXY
QNetworkProxy lastProxyAuthentication;