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 |