- Some bug fixes (Proxy)

This commit is contained in:
Christophe Dumez
2007-11-22 10:49:10 +00:00
parent 78fc5d4865
commit b1d8fb0f11
3 changed files with 16 additions and 5 deletions

View File

@@ -460,7 +460,15 @@ void options_imp::loadOptions(){
spinUploadLimit->setEnabled(false);
}
intValue = settings.value(QString::fromUtf8("ProxyType"), 0).toInt();
if(intValue < 0) intValue = 0;
if(intValue <= 0) {
intValue = 0;
} else {
if(intValue%2 == 0) {
intValue = 2;
}else {
intValue = 1;
}
}
comboProxyType->setCurrentIndex(intValue);
enableProxy(intValue);
if(isProxyEnabled()) {