core: Fix new proxy credentials being ignored

Changing proxy authentication credentials had no effect because of
the internal QNetworkAccessManager cache.
This commit is contained in:
Oleg Shparber
2017-04-09 11:14:26 -04:00
parent bb89f29977
commit 2079180b8c
+4
View File
@@ -208,7 +208,11 @@ void Application::applySettings()
proxy.setUser(m_settings->proxyUserName);
proxy.setPassword(m_settings->proxyPassword);
}
QNetworkProxy::setApplicationProxy(proxy);
// Force NM to pick up changes.
m_networkManager->clearAccessCache();
break;
}
}