fix #8060 (new SIP API)

This commit is contained in:
Borys Jurgiel 2013-06-14 00:14:23 +02:00
parent d547b25c17
commit 820a0f783f

View File

@ -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)