59 if dlg.shallSave(): |
59 if dlg.shallSave(): |
60 scheme = schemeFromProxyType(proxy.type()) |
60 scheme = schemeFromProxyType(proxy.type()) |
61 if scheme and scheme != "NoProxy": |
61 if scheme and scheme != "NoProxy": |
62 Preferences.setUI("ProxyUser/{0}".format(scheme), username) |
62 Preferences.setUI("ProxyUser/{0}".format(scheme), username) |
63 Preferences.setUI("ProxyPassword/{0}".format(scheme), password) |
63 Preferences.setUI("ProxyPassword/{0}".format(scheme), password) |
64 proxy.setUser(username) |
64 proxy.setUser(username) |
65 proxy.setPassword(password) |
65 proxy.setPassword(password) |
66 |
66 |
67 |
67 |
68 class E5NetworkProxyFactory(QNetworkProxyFactory): |
68 class E5NetworkProxyFactory(QNetworkProxyFactory): |
69 """ |
69 """ |
70 Class implementing a network proxy factory. |
70 Class implementing a network proxy factory. |