Obsolete library/mozjs-60
[oi-userland.git] / components / encumbered / megasync / patches / 03-ProxySettings.cpp.patch
blob6cb7ad54454faf2aae2571eb63efa8b159a3fcbd
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
3 @@ -33,7 +33,7 @@
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);});
7 -#ifndef Q_OS_LINUX
8 +#if !defined(Q_OS_LINUX) && !defined(Q_OS_SOLARIS)
9 connect(mUi->rProxyAuto, &QRadioButton::clicked, this, [this]{setManualMode(false);});
10 #endif
12 @@ -48,7 +48,7 @@
13 void ProxySettings::initialize()
15 mUi->rNoProxy->setChecked(mPreferences->proxyType() == Preferences::PROXY_TYPE_NONE);
16 -#ifndef Q_OS_LINUX
17 +#if !defined(Q_OS_LINUX) && !defined(Q_OS_SOLARIS)
18 mUi->rProxyAuto->setChecked(mPreferences->proxyType() == Preferences::PROXY_TYPE_AUTO);
19 #endif
20 mUi->rProxyManual->setChecked(mPreferences->proxyType() == Preferences::PROXY_TYPE_CUSTOM);
21 @@ -99,7 +99,7 @@
23 mPreferences->setProxyType(Preferences::PROXY_TYPE_NONE);
25 -#ifndef Q_OS_LINUX
26 +#if !defined(Q_OS_LINUX) && !defined(Q_OS_SOLARIS)
27 else if (mUi->rProxyAuto->isChecked())
29 mPreferences->setProxyType(Preferences::PROXY_TYPE_AUTO);
30 @@ -147,7 +147,7 @@
31 proxy.setPassword(mUi->eProxyPassword->text());
34 -#ifndef Q_OS_LINUX
35 +#if !defined(Q_OS_LINUX) && !defined(Q_OS_SOLARIS)
36 else if (mUi->rProxyAuto->isChecked())
38 MegaProxy *proxySettings = mApp->getMegaApi()->getAutoProxySettings();