mirror of
https://github.com/zealdocs/zeal.git
synced 2026-08-29 08:34:50 +08:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user