- 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

@ -187,6 +187,16 @@ public:
return settings.value(QString::fromUtf8("Preferences/Connection/GlobalUPLimit"), -1).toInt();
}
static bool resolvePeerCountries() {
QSettings settings("qBittorrent", "qBittorrent");
return settings.value(QString::fromUtf8("Preferences/Connection/ResolvePeerCountries"), false).toBool();
}
static bool resolvePeerHostNames() {
QSettings settings("qBittorrent", "qBittorrent");
return settings.value(QString::fromUtf8("Preferences/Connection/ResolvePeerHostNames"), false).toBool();
}
// Proxy options
static bool isHTTPProxyEnabled() {
QSettings settings("qBittorrent", "qBittorrent");