Fixed a forgotten parenting of network replies in the network access manager.

Sun, 10 Oct 2010 11:25:46 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 10 Oct 2010 11:25:46 +0200
changeset 666
fdd568d3533d
parent 665
a160ae15301c
child 668
b0061a6f7484

Fixed a forgotten parenting of network replies in the network access manager.

Helpviewer/Network/NetworkAccessManager.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/Network/NetworkAccessManager.py	Sat Oct 09 15:34:17 2010 +0200
+++ b/Helpviewer/Network/NetworkAccessManager.py	Sun Oct 10 11:25:46 2010 +0200
@@ -114,7 +114,7 @@
         """
         scheme = request.url().scheme()
         if scheme == "https" and (not SSL_AVAILABLE or not QSslSocket.supportsSsl()):
-            return NetworkProtocolUnknownErrorReply(scheme)
+            return NetworkProtocolUnknownErrorReply(scheme, self)
         
         if op == QNetworkAccessManager.PostOperation and outgoingData is not None:
             outgoingDataByteArray = outgoingData.peek(1024 * 1024)
@@ -145,6 +145,7 @@
                     Helpviewer.HelpWindow.HelpWindow.adblockManager().network()
             reply = self.__adblockNetwork.block(req)
             if reply is not None:
+                reply.setParent(self)
                 return reply
         
         reply = QNetworkAccessManager.createRequest(self, op, req, outgoingData)

eric ide

mercurial