diff --git a/src/core/preferences.cpp b/src/core/preferences.cpp index 65ed85e7c..91cb2daf7 100644 --- a/src/core/preferences.cpp +++ b/src/core/preferences.cpp @@ -504,7 +504,7 @@ QList Preferences::getDownloadInScanDirs() const void Preferences::setDownloadInScanDirs(const QList &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 diff --git a/src/core/utils/misc.cpp b/src/core/utils/misc.cpp index ceef86d1b..24efe5281 100644 --- a/src/core/utils/misc.cpp +++ b/src/core/utils/misc.cpp @@ -465,7 +465,7 @@ QList Utils::Misc::boolListfromStringList(const QStringList &l) { QList ret; foreach (const QString &s, l) - ret << (s=="1"); + ret << (s == "1"); return ret; }