Manually backport from master, commit 00e09435 and its fixes. Original author Bruno Barbieri.

This commit is contained in:
sledgehammer999
2014-07-07 00:30:24 +03:00
parent e09d75f68e
commit d11e0f523c
8 changed files with 58 additions and 13 deletions

View File

@@ -967,6 +967,14 @@ public:
setValue(QString::fromUtf8("Preferences/Downloads/AutoSuspendOnCompletion"), suspend);
}
bool hibernateWhenDownloadsComplete() const {
return value(QString::fromUtf8("Preferences/Downloads/AutoHibernateOnCompletion"), false).toBool();
}
void setHibernateWhenDownloadsComplete(bool hibernate) {
setValue(QString::fromUtf8("Preferences/Downloads/AutoHibernateOnCompletion"), hibernate);
}
bool shutdownqBTWhenDownloadsComplete() const {
return value(QString::fromUtf8("Preferences/Downloads/AutoShutDownqBTOnCompletion"), false).toBool();
}