- Added option to disable peer host name resolution (disabled as a default)

- Fix several other bugs related to properties and preferences
This commit is contained in:
Christophe Dumez 2009-11-15 10:00:07 +00:00
parent 3762c37517
commit 5962ef79cb
8 changed files with 81 additions and 15 deletions

View file

@ -364,6 +364,8 @@ void options_imp::saveOptions(){
settings.setValue(QString::fromUtf8("NAT-PMP"), isNATPMPEnabled());
settings.setValue(QString::fromUtf8("GlobalDLLimit"), getGlobalBandwidthLimits().first);
settings.setValue(QString::fromUtf8("GlobalUPLimit"), getGlobalBandwidthLimits().second);
settings.setValue("ResolvePeerCountries", checkResolveCountries->isChecked());
settings.setValue("ResolvePeerHostNames", checkResolveHosts->isChecked());
settings.setValue(QString::fromUtf8("ProxyType"), getProxyType());
//if(isProxyEnabled()) {
settings.beginGroup("Proxy");
@ -604,6 +606,10 @@ void options_imp::loadOptions(){
checkUploadLimit->setChecked(false);
spinUploadLimit->setEnabled(false);
}
// Peer connections
checkResolveCountries->setChecked(Preferences::resolvePeerCountries());
checkResolveHosts->setChecked(Preferences::resolvePeerHostNames());
intValue = Preferences::getProxyType();
if(intValue <= 0) {
intValue = 0;