mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
- 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:
parent
3762c37517
commit
5962ef79cb
8 changed files with 81 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue