summaryrefslogtreecommitdiff
path: root/noncore
authorandyq <andyq>2002-12-13 13:49:02 (UTC)
committer andyq <andyq>2002-12-13 13:49:02 (UTC)
commit8b1c25e608e7255199dc97ad8269ac66d40beede (patch) (unidiff)
treef17e7e897e1f872e035c004af8479430c45bc640 /noncore
parent9b65e55ce70837695b319ef7049674e9c3daba98 (diff)
downloadopie-8b1c25e608e7255199dc97ad8269ac66d40beede.zip
opie-8b1c25e608e7255199dc97ad8269ac66d40beede.tar.gz
opie-8b1c25e608e7255199dc97ad8269ac66d40beede.tar.bz2
Only enable the username and password if one of the proxies is enabled
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/datamgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/aqpkg/datamgr.cpp b/noncore/settings/aqpkg/datamgr.cpp
index 3933a22..0159a79 100644
--- a/noncore/settings/aqpkg/datamgr.cpp
+++ b/noncore/settings/aqpkg/datamgr.cpp
@@ -252,3 +252,3 @@ void DataManager :: writeOutIpkgConf()
252 } 252 }
253 if ( proxyUsername == "" ) 253 if ( proxyUsername == "" || (!httpProxyEnabled && !ftpProxyEnabled) )
254 out << "#option proxy_username <username>" << endl; 254 out << "#option proxy_username <username>" << endl;
@@ -256,3 +256,3 @@ void DataManager :: writeOutIpkgConf()
256 out << "option proxy_username " << proxyUsername << endl; 256 out << "option proxy_username " << proxyUsername << endl;
257 if ( proxyPassword == "" ) 257 if ( proxyPassword == "" || (!httpProxyEnabled && !ftpProxyEnabled) )
258 out << "#option proxy_password <password>" << endl << endl; 258 out << "#option proxy_password <password>" << endl << endl;