1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-02 01:44:26 +00:00

- Fix for HTTP Proxy settings

This commit is contained in:
Christophe Dumez 2009-01-03 19:23:33 +00:00
parent 36bc2e96ba
commit c786c42bb1

View File

@ -333,17 +333,17 @@ void options_imp::saveOptions(){
settings.setValue(QString::fromUtf8("AffectDHT"), useProxyForDHT());
settings.endGroup(); // End Proxy
}
settings.setValue(QString::fromUtf8("HTTPProxyType"), getProxyType());
settings.setValue(QString::fromUtf8("HTTPProxyType"), getHTTPProxyType());
if(isProxyEnabled()) {
settings.beginGroup("HTTPProxy");
// Proxy is enabled, save settings
settings.setValue(QString::fromUtf8("IP"), getProxyIp());
settings.setValue(QString::fromUtf8("Port"), getProxyPort());
settings.setValue(QString::fromUtf8("Authentication"), isProxyAuthEnabled());
settings.setValue(QString::fromUtf8("IP"), getHTTPProxyIp());
settings.setValue(QString::fromUtf8("Port"), getHTTPProxyPort());
settings.setValue(QString::fromUtf8("Authentication"), isHTTPProxyAuthEnabled());
if(isProxyAuthEnabled()) {
// Credentials
settings.setValue(QString::fromUtf8("Username"), getProxyUsername());
settings.setValue(QString::fromUtf8("Password"), getProxyPassword());
settings.setValue(QString::fromUtf8("Username"), getHTTPProxyUsername());
settings.setValue(QString::fromUtf8("Password"), getHTTPProxyPassword());
}
settings.endGroup(); // End HTTPProxy
}
@ -588,7 +588,7 @@ void options_imp::loadOptions(){
}
comboProxyType_http->setCurrentIndex(intValue);
enableProxyHTTP(intValue);
if(isProxyEnabled()) {
if(isHTTPProxyEnabled()) {
settings.beginGroup("HTTPProxy");
// Proxy is enabled, save settings
textProxyIP_http->setText(settings.value(QString::fromUtf8("IP"), "0.0.0.0").toString());