Merge pull request #4218 from d3faultdotxbe/master

Add 'never show again' checkbox/pref to auto-exit confirm dialog
This commit is contained in:
sledgehammer999 2016-03-27 14:24:50 -05:00
commit 2b8327c807
7 changed files with 103 additions and 42 deletions

View file

@ -1164,6 +1164,16 @@ void Preferences::setShutdownqBTWhenDownloadsComplete(bool shutdown)
setValue("Preferences/Downloads/AutoShutDownqBTOnCompletion", shutdown);
}
bool Preferences::dontConfirmAutoExit() const
{
return value("Preferences/Downloads/DontConfirmAutoExit", false).toBool();
}
void Preferences::setDontConfirmAutoExit(bool dontConfirmAutoExit)
{
setValue("Preferences/Downloads/DontConfirmAutoExit", dontConfirmAutoExit);
}
uint Preferences::diskCacheSize() const
{
uint size = value("Preferences/Downloads/DiskWriteCacheSize", 0).toUInt();