Fix compilation errors on Windows

This commit is contained in:
Christophe Dumez 2010-11-22 20:27:57 +00:00
parent efe5e7b068
commit b169083fe2
3 changed files with 22 additions and 22 deletions

View file

@ -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);
}