mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Fix variable name conflict
This commit is contained in:
@@ -1866,16 +1866,16 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
|||||||
}
|
}
|
||||||
// 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
|
||||||
QString proxyType;
|
QString type_str;
|
||||||
if(proxySettings.type == proxy_settings::socks5 || proxySettings.type == proxy_settings::socks5_pw)
|
if(proxySettings.type == proxy_settings::socks5 || proxySettings.type == proxy_settings::socks5_pw)
|
||||||
proxyType = "sock_proxy";
|
type_str = "sock_proxy";
|
||||||
else
|
else
|
||||||
proxyType = "http_proxy";
|
type_str = "http_proxy";
|
||||||
#ifdef MINGW
|
#ifdef MINGW
|
||||||
QString tmp = proxyType+"="+proxy_str;
|
QString tmp = type_str+"="+proxy_str;
|
||||||
putenv(tmp.toLocal8Bit().constData());
|
putenv(tmp.toLocal8Bit().constData());
|
||||||
#else
|
#else
|
||||||
SetEnvironmentVariableA(proxyType.toLocal8Bit().constData(), proxy_str.toLocal8Bit().constData());
|
SetEnvironmentVariableA(type_str.toLocal8Bit().constData(), proxy_str.toLocal8Bit().constData());
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
qDebug("HTTP communications proxy string: %s", qPrintable(proxy_str));
|
qDebug("HTTP communications proxy string: %s", qPrintable(proxy_str));
|
||||||
|
|||||||
Reference in New Issue
Block a user