BUGFIX: The user can disable permanently recursive torrent download

This commit is contained in:
Christophe Dumez
2010-06-14 17:46:33 +00:00
parent f699ee1363
commit 80d76ae038
3 changed files with 23 additions and 1 deletions

View File

@@ -1002,6 +1002,16 @@ public:
qBTRSS.setValue("hosts_cookies", hosts_table);
}
static bool recursiveDownloadDisabled() {
QSettings settings("qBittorrent", "qBittorrent");
return settings.value(QString::fromUtf8("Preferences/Advanced/DisableRecursiveDownload"), false).toBool();
}
static void disableRecursiveDownload(bool disable=true) {
QSettings settings("qBittorrent", "qBittorrent");
settings.setValue(QString::fromUtf8("Preferences/Advanced/DisableRecursiveDownload"), disable);
}
#ifdef Q_WS_WIN
static QString getPythonPath() {
QSettings reg_python("HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore", QSettings::NativeFormat);