mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix compilation errors on Windows
This commit is contained in:
parent
efe5e7b068
commit
b169083fe2
3 changed files with 22 additions and 22 deletions
|
@ -53,7 +53,7 @@ ProgramUpdater::ProgramUpdater(QObject *parent) :
|
|||
mp_manager = new QNetworkAccessManager(this);
|
||||
Preferences pref;
|
||||
// Proxy support
|
||||
if(pref.isHTTPProxyEnabled()) {
|
||||
if(pref.isProxyEnabled()) {
|
||||
QNetworkProxy proxy;
|
||||
switch(pref.getHTTPProxyType()) {
|
||||
case Proxy::SOCKS4:
|
||||
|
@ -67,9 +67,9 @@ ProgramUpdater::ProgramUpdater(QObject *parent) :
|
|||
proxy.setHostName(pref.getHTTPProxyIp());
|
||||
proxy.setPort(pref.getHTTPProxyPort());
|
||||
// Proxy authentication
|
||||
if(pref.isHTTPProxyAuthEnabled()) {
|
||||
proxy.setUser(pref.getHTTPProxyUsername());
|
||||
proxy.setPassword(pref.getHTTPProxyPassword());
|
||||
if(pref.isProxyAuthEnabled()) {
|
||||
proxy.setUser(pref.getProxyUsername());
|
||||
proxy.setPassword(pref.getProxyPassword());
|
||||
}
|
||||
mp_manager->setProxy(proxy);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue