Add setting to ignore slow torrents in queueing system

Closes https://bugs.launchpad.net/qbittorrent/+bug/799703
This commit is contained in:
Christophe Dumez
2011-09-18 19:34:29 +03:00
parent 9e5ec56770
commit 94f92aa4f9
40 changed files with 1287 additions and 1111 deletions

View File

@@ -709,6 +709,14 @@ public:
setValue(QString::fromUtf8("Preferences/Queueing/MaxActiveTorrents"), val);
}
void setIgnoreSlowTorrentsForQueueing(bool ignore) {
setValue("Preferences/Queueing/IgnoreSlowTorrents", ignore);
}
bool ignoreSlowTorrentsForQueueing() const {
return value("Preferences/Queueing/IgnoreSlowTorrents", false).toBool();
}
bool isWebUiEnabled() const {
return value("Preferences/WebUI/Enabled", false).toBool();
}