"Set as default label" option

This commit is contained in:
takiz
2015-11-03 20:05:15 +05:00
committed by sledgehammer999
parent c5d807ef65
commit 68ac9fda2d
4 changed files with 30 additions and 1 deletions

View File

@@ -1662,6 +1662,16 @@ void Preferences::removeTorrentLabel(const QString& label)
setValue("TransferListFilters/customLabels", labels);
}
QString Preferences::getDefaultLabel() const
{
return value("Preferences/Downloads/DefaultLabel").toString();
}
void Preferences::setDefaultLabel(const QString &defaultLabel)
{
setValue("Preferences/Downloads/DefaultLabel", defaultLabel);
}
bool Preferences::recursiveDownloadDisabled() const
{
return value("Preferences/Advanced/DisableRecursiveDownload", false).toBool();