mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 19:40:18 -07:00
parent
f4ef0633c9
commit
8014d74210
2 changed files with 3 additions and 3 deletions
|
@ -504,7 +504,7 @@ QList<bool> Preferences::getDownloadInScanDirs() const
|
|||
|
||||
void Preferences::setDownloadInScanDirs(const QList<bool> &list)
|
||||
{
|
||||
setValue("Preferences/Downloads/ScanDirsDownloadPaths", Utils::Misc::toStringList(list));
|
||||
setValue("Preferences/Downloads/DownloadInScanDirs", Utils::Misc::toStringList(list));
|
||||
}
|
||||
|
||||
void Preferences::setScanDirsDownloadPaths(const QStringList &downloadpaths)
|
||||
|
@ -514,7 +514,7 @@ void Preferences::setScanDirsDownloadPaths(const QStringList &downloadpaths)
|
|||
|
||||
QStringList Preferences::getScanDirsDownloadPaths() const
|
||||
{
|
||||
return value("Preferences/Downloads/DownloadPaths").toStringList();
|
||||
return value("Preferences/Downloads/ScanDirsDownloadPaths").toStringList();
|
||||
}
|
||||
|
||||
QString Preferences::getScanDirsLastPath() const
|
||||
|
|
|
@ -465,7 +465,7 @@ QList<bool> Utils::Misc::boolListfromStringList(const QStringList &l)
|
|||
{
|
||||
QList<bool> ret;
|
||||
foreach (const QString &s, l)
|
||||
ret << (s=="1");
|
||||
ret << (s == "1");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue