1 --- MEGAsync_ori/src/MEGASync/gui/ProxySettings.cpp Wed Jan 26 20:25:17 2022
2 +++ MEGAsync_patched/src/MEGASync/gui/ProxySettings.cpp Sat Mar 5 15:36:25 2022
4 connect(mUi->rProxyManual, &QRadioButton::clicked, this, [this]{setManualMode(true);});
5 connect(mUi->cProxyRequiresPassword, &QCheckBox::toggled, this, [this]{setManualMode(true);});
6 connect(mUi->rNoProxy, &QRadioButton::clicked, this, [this]{setManualMode(false);});
8 +#if !defined(Q_OS_LINUX) && !defined(Q_OS_SOLARIS)
9 connect(mUi->rProxyAuto, &QRadioButton::clicked, this, [this]{setManualMode(false);});
13 void ProxySettings::initialize()
15 mUi->rNoProxy->setChecked(mPreferences->proxyType() == Preferences::PROXY_TYPE_NONE);
17 +#if !defined(Q_OS_LINUX) && !defined(Q_OS_SOLARIS)
18 mUi->rProxyAuto->setChecked(mPreferences->proxyType() == Preferences::PROXY_TYPE_AUTO);
20 mUi->rProxyManual->setChecked(mPreferences->proxyType() == Preferences::PROXY_TYPE_CUSTOM);
23 mPreferences->setProxyType(Preferences::PROXY_TYPE_NONE);
26 +#if !defined(Q_OS_LINUX) && !defined(Q_OS_SOLARIS)
27 else if (mUi->rProxyAuto->isChecked())
29 mPreferences->setProxyType(Preferences::PROXY_TYPE_AUTO);
31 proxy.setPassword(mUi->eProxyPassword->text());
35 +#if !defined(Q_OS_LINUX) && !defined(Q_OS_SOLARIS)
36 else if (mUi->rProxyAuto->isChecked())
38 MegaProxy *proxySettings = mApp->getMegaApi()->getAutoProxySettings();