Browse Source

Fix scan dirs settings saving. Closes #4254, #4239, #4187.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 9 years ago
parent
commit
8014d74210
  1. 4
      src/core/preferences.cpp
  2. 2
      src/core/utils/misc.cpp

4
src/core/preferences.cpp

@ -504,7 +504,7 @@ QList<bool> Preferences::getDownloadInScanDirs() const @@ -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) @@ -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

2
src/core/utils/misc.cpp

@ -465,7 +465,7 @@ QList<bool> Utils::Misc::boolListfromStringList(const QStringList &l) @@ -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…
Cancel
Save