UserInterface, WebBrowser.Network.NetworkManager: added some shutdown code to prevent crashes related to QNetworkProxyFactory on shutdown. maintenance

Fri, 08 Feb 2019 17:55:07 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 08 Feb 2019 17:55:07 +0100
branch
maintenance
changeset 6747
09ad978cb776
parent 6746
d105e61f4914
child 6748
f5643095498a

UserInterface, WebBrowser.Network.NetworkManager: added some shutdown code to prevent crashes related to QNetworkProxyFactory on shutdown.
(grafted from 80fee080d9fefe8f0e9d753b3dae4a9ade05c9c3)

UI/UserInterface.py file | annotate | diff | comparison | revisions
WebBrowser/Network/NetworkManager.py file | annotate | diff | comparison | revisions
--- a/UI/UserInterface.py	Tue Feb 05 19:35:13 2019 +0100
+++ b/UI/UserInterface.py	Fri Feb 08 17:55:07 2019 +0100
@@ -6627,6 +6627,9 @@
             self.SAServer.shutdown()
             self.SAServer = None
         
+        # set proxy factory to None to avoid crashes
+        QNetworkProxyFactory.setApplicationProxyFactory(None)
+        
         Preferences.setGeometry("MainMaximized", self.isMaximized())
         if not self.isMaximized():
             Preferences.setGeometry("MainGeometry", self.saveGeometry())
--- a/WebBrowser/Network/NetworkManager.py	Tue Feb 05 19:35:13 2019 +0100
+++ b/WebBrowser/Network/NetworkManager.py	Fri Feb 08 17:55:07 2019 +0100
@@ -132,6 +132,9 @@
         self.__loaded = False
         self.__temporarilyIgnoredSslErrors = {}
         self.__permanentlyIgnoredSslErrors = {}
+        
+        # set proxy factory to None to avoid crashes
+        QNetworkProxyFactory.setApplicationProxyFactory(None)
     
     def showSslErrorExceptionsDialog(self):
         """

eric ide

mercurial