mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
fix #8060 (new SIP API)
This commit is contained in:
parent
d547b25c17
commit
820a0f783f
@ -180,7 +180,7 @@ class QPNetworkAccessManager(QNetworkAccessManager):
|
||||
if settings.value("/proxyEnabled", False, type=bool):
|
||||
self.proxy=QNetworkProxy()
|
||||
proxyType = settings.value( "/proxyType", "0", type=unicode)
|
||||
if len(args)>0 and settings.value("/proxyExcludedUrls","", type=unicode).contains(args[0]):
|
||||
if len(args) > 0 and settings.value("/proxyExcludedUrls","", type=unicode).find(args[0]) > -1:
|
||||
proxyType = "NoProxy"
|
||||
if proxyType in ["1","Socks5Proxy"]: self.proxy.setType(QNetworkProxy.Socks5Proxy)
|
||||
elif proxyType in ["2","NoProxy"]: self.proxy.setType(QNetworkProxy.NoProxy)
|
||||
|
Loading…
x
Reference in New Issue
Block a user