mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Use application proxy when setting global proxy setting via network settings
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
564be17ce4
commit
eeb9cc284a
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ void NetworkSettings::saveProxySettings()
|
|||
_account->setProxyPassword(password);
|
||||
|
||||
if (useGlobalProxy) {
|
||||
_account->networkAccessManager()->setProxy(QNetworkProxy(QNetworkProxy::DefaultProxy));
|
||||
_account->networkAccessManager()->setProxy(QNetworkProxy::applicationProxy());
|
||||
} else {
|
||||
const auto proxy = QNetworkProxy(proxyType, host, port, user, password);
|
||||
_account->networkAccessManager()->setProxy(proxy);
|
||||
|
|
Loading…
Reference in a new issue