From 6b12371f50015e973eaf06b1ffdb0124978bbe4e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 22 Mar 2010 18:58:30 +0000 Subject: [PATCH] Improvement to last fix --- src/eventmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eventmanager.cpp b/src/eventmanager.cpp index 36d10c57e..95a909c59 100644 --- a/src/eventmanager.cpp +++ b/src/eventmanager.cpp @@ -134,9 +134,9 @@ void EventManager::setGlobalPreferences(QVariantMap m) const { QVariantList download_at_path = m["download_in_scan_dirs"].toList(); QStringList old_folders = Preferences::getScanDirs(); QStringList new_folders = m["scan_dirs"].toStringList(); - Preferences::setScanDirs(new_folders); - Preferences::setDownloadInScanDirs(download_at_path); if(download_at_path.size() == new_folders.size()) { + Preferences::setScanDirs(new_folders); + Preferences::setDownloadInScanDirs(download_at_path); foreach(const QString &old_folder, old_folders) { // Update deleted folders if(!new_folders.contains(old_folder)) {