From 8014d74210fe5d545f6897498f7c4afc4118f353 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Sat, 5 Dec 2015 17:48:57 +0300 Subject: [PATCH] Fix scan dirs settings saving. Closes #4254, #4239, #4187. --- src/core/preferences.cpp | 4 ++-- src/core/utils/misc.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }