mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
- Removed useless check in proxy code
This commit is contained in:
parent
9412ced722
commit
d40c646561
1 changed files with 5 additions and 7 deletions
|
@ -1040,7 +1040,6 @@ 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
|
||||
#ifdef Q_WS_WIN
|
||||
char proxystr[512];
|
||||
|
@ -1049,7 +1048,6 @@ void GUI::configureSession(bool deleteOptions) {
|
|||
#else
|
||||
setenv("http_proxy", proxy_str.toUtf8().data(), 1);
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
#ifdef Q_WS_WIN
|
||||
putenv("http_proxy=");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue