UserInterface: fixed an exception thrown with Qt4 when changing network preferences.

Mon, 18 Feb 2019 19:14:05 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 18 Feb 2019 19:14:05 +0100
changeset 6783
d8a0d75aaf01
parent 6780
7f7453c8e5fc
child 6784
f5d29245dbb9
child 6786
701b511ba8f5

UserInterface: fixed an exception thrown with Qt4 when changing network preferences.

UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/UI/UserInterface.py	Sun Feb 17 17:13:51 2019 +0100
+++ b/UI/UserInterface.py	Mon Feb 18 19:14:05 2019 +0100
@@ -212,10 +212,10 @@
             self.restoreGeometry(g)
         self.__startup = True
         
-        self.__proxyFactory = E5NetworkProxyFactory()
         if Preferences.getUI("UseSystemProxy"):
             QNetworkProxyFactory.setUseSystemConfiguration(True)
         else:
+            self.__proxyFactory = E5NetworkProxyFactory()
             QNetworkProxyFactory.setApplicationProxyFactory(
                 self.__proxyFactory)
             QNetworkProxyFactory.setUseSystemConfiguration(False)
@@ -5873,6 +5873,7 @@
         if Preferences.getUI("UseSystemProxy"):
             QNetworkProxyFactory.setUseSystemConfiguration(True)
         else:
+            self.__proxyFactory = E5NetworkProxyFactory()
             QNetworkProxyFactory.setApplicationProxyFactory(
                 self.__proxyFactory)
             QNetworkProxyFactory.setUseSystemConfiguration(False)

eric ide

mercurial