From eeb9cc284a0b7efd8c7f8e8fe632f235acd7329c Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 22 Jul 2024 15:58:26 +0800 Subject: [PATCH] Use application proxy when setting global proxy setting via network settings Signed-off-by: Claudio Cambra --- src/gui/networksettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/networksettings.cpp b/src/gui/networksettings.cpp index 74ee54f0294da..16bb1ad50b72a 100644 --- a/src/gui/networksettings.cpp +++ b/src/gui/networksettings.cpp @@ -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);