1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

- Removed useless check in proxy code

This commit is contained in:
Christophe Dumez 2009-01-03 22:26:45 +00:00
parent 9412ced722
commit d40c646561

View File

@ -1040,16 +1040,14 @@ void GUI::configureSession(bool deleteOptions) {
default: default:
proxy_str = misc::toQString("http://")+options->getProxyIp()+":"+misc::toQString(proxySettings.port); 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 #ifdef Q_WS_WIN
char proxystr[512]; char proxystr[512];
snprintf(proxystr, 512, "http_proxy=%s", proxy_str.toUtf8().data()); snprintf(proxystr, 512, "http_proxy=%s", proxy_str.toUtf8().data());
putenv(proxystr); putenv(proxystr);
#else #else
setenv("http_proxy", proxy_str.toUtf8().data(), 1); setenv("http_proxy", proxy_str.toUtf8().data(), 1);
#endif #endif
}
} else { } else {
#ifdef Q_WS_WIN #ifdef Q_WS_WIN
putenv("http_proxy="); putenv("http_proxy=");