E5Network/E5NetworkProxyFactory.py

changeset 1363
d650915a903c
parent 1131
7781e396c903
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1362:620b8eaf4126 1363:d650915a903c
85 if query.queryType() == QNetworkProxyQuery.UrlRequest and \ 85 if query.queryType() == QNetworkProxyQuery.UrlRequest and \
86 query.protocolTag() in ["http", "https", "ftp"] and \ 86 query.protocolTag() in ["http", "https", "ftp"] and \
87 Preferences.getUI("UseProxy"): 87 Preferences.getUI("UseProxy"):
88 if Preferences.getUI("UseSystemProxy"): 88 if Preferences.getUI("UseSystemProxy"):
89 proxyList = QNetworkProxyFactory.systemProxyForQuery(query) 89 proxyList = QNetworkProxyFactory.systemProxyForQuery(query)
90 if (not Globals.isWindowsPlatform() and \ 90 if not Globals.isWindowsPlatform() and \
91 not Globals.isMacPlatform()) and \
92 len(proxyList) == 1 and \ 91 len(proxyList) == 1 and \
93 proxyList[0].type() == QNetworkProxy.NoProxy: 92 proxyList[0].type() == QNetworkProxy.NoProxy:
94 # try it the Python way 93 # try it the Python way
95 # scan the environment for variables named <scheme>_proxy 94 # scan the environment for variables named <scheme>_proxy
96 # scan over whole environment to make this case insensitive 95 # scan over whole environment to make this case insensitive

eric ide

mercurial