Fix #2109 : Proxy settings not being cleared by setting None

This commit is contained in:
Calum Lind 2012-11-26 21:59:48 +00:00
parent 67450f43b3
commit e7a2a8dcee

View File

@ -471,7 +471,6 @@ class PreferencesManager(component.Component):
def _on_set_proxies(self, key, value):
for k, v in value.items():
if v["type"]:
proxy_settings = lt.proxy_settings()
proxy_settings.type = lt.proxy_type(v["type"])
proxy_settings.username = str(v["username"])