1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

Merge pull request #4262 from glassez/scandirs

Fix scan dirs settings saving. Closes #4254, #4239, #4187.
This commit is contained in:
sledgehammer999 2015-12-05 11:17:41 -06:00
commit 8362cb5e4f
2 changed files with 3 additions and 3 deletions

View File

@ -504,7 +504,7 @@ QList<bool> Preferences::getDownloadInScanDirs() const
void Preferences::setDownloadInScanDirs(const QList<bool> &list) 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) void Preferences::setScanDirsDownloadPaths(const QStringList &downloadpaths)
@ -514,7 +514,7 @@ void Preferences::setScanDirsDownloadPaths(const QStringList &downloadpaths)
QStringList Preferences::getScanDirsDownloadPaths() const QStringList Preferences::getScanDirsDownloadPaths() const
{ {
return value("Preferences/Downloads/DownloadPaths").toStringList(); return value("Preferences/Downloads/ScanDirsDownloadPaths").toStringList();
} }
QString Preferences::getScanDirsLastPath() const QString Preferences::getScanDirsLastPath() const

View File

@ -465,7 +465,7 @@ QList<bool> Utils::Misc::boolListfromStringList(const QStringList &l)
{ {
QList<bool> ret; QList<bool> ret;
foreach (const QString &s, l) foreach (const QString &s, l)
ret << (s=="1"); ret << (s == "1");
return ret; return ret;
} }