summaryrefslogtreecommitdiffstats
path: root/src/network/socket
diff options
context:
space:
mode:
authorMartin Petersson <martin.petersson@nokia.com>2011-02-22 16:12:40 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2011-02-22 17:18:15 (GMT)
commitb7667461ca80613d018f2258b54b5d1f9195e50d (patch)
tree7022369b7f3c94331dcbc091b98fd5ca215a71a6 /src/network/socket
parent7f41f062e05c02ddf31ab6b81444f57904614f2a (diff)
downloadQt-b7667461ca80613d018f2258b54b5d1f9195e50d.zip
Qt-b7667461ca80613d018f2258b54b5d1f9195e50d.tar.gz
Qt-b7667461ca80613d018f2258b54b5d1f9195e50d.tar.bz2
tst_qnetworkreply: Fix httpProxyCommands() on Windows.
Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/socket')
-rw-r--r--src/network/socket/qhttpsocketengine.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/network/socket/qhttpsocketengine.cpp b/src/network/socket/qhttpsocketengine.cpp
index 4e628f3..6a025f2 100644
--- a/src/network/socket/qhttpsocketengine.cpp
+++ b/src/network/socket/qhttpsocketengine.cpp
@@ -743,7 +743,10 @@ void QHttpSocketEngine::emitReadNotification()
{
Q_D(QHttpSocketEngine);
d->readNotificationActivated = true;
- if (d->readNotificationEnabled && !d->readNotificationPending) {
+ // if there is a connection notification pending we have to emit the readNotification
+ // incase there is connection error. This is only needed for Windows, but it does not
+ // hurt in other cases.
+ if ((d->readNotificationEnabled && !d->readNotificationPending) || d->connectionNotificationPending) {
d->readNotificationPending = true;
QMetaObject::invokeMethod(this, "emitPendingReadNotification", Qt::QueuedConnection);
}