|
|
|
@ -1040,16 +1040,14 @@ void GUI::configureSession(bool deleteOptions) {
@@ -1040,16 +1040,14 @@ void GUI::configureSession(bool deleteOptions) {
|
|
|
|
|
default: |
|
|
|
|
proxy_str = misc::toQString("http://")+options->getProxyIp()+":"+misc::toQString(proxySettings.port); |
|
|
|
|
} |
|
|
|
|
if(!proxy_str.isEmpty()) { |
|
|
|
|
// We need this for urllib in search engine plugins
|
|
|
|
|
// We need this for urllib in search engine plugins
|
|
|
|
|
#ifdef Q_WS_WIN |
|
|
|
|
char proxystr[512]; |
|
|
|
|
snprintf(proxystr, 512, "http_proxy=%s", proxy_str.toUtf8().data()); |
|
|
|
|
putenv(proxystr); |
|
|
|
|
char proxystr[512]; |
|
|
|
|
snprintf(proxystr, 512, "http_proxy=%s", proxy_str.toUtf8().data()); |
|
|
|
|
putenv(proxystr); |
|
|
|
|
#else |
|
|
|
|
setenv("http_proxy", proxy_str.toUtf8().data(), 1); |
|
|
|
|
setenv("http_proxy", proxy_str.toUtf8().data(), 1); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
#ifdef Q_WS_WIN |
|
|
|
|
putenv("http_proxy="); |
|
|
|
|