From 6cd68b8632aec1073b38ce64c76b9c7b0413fc68 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Sun, 30 Apr 2023 18:30:55 +0800 Subject: [PATCH] Make variables in folderman::setupfoldermigration actually match what they are holding Signed-off-by: Claudio Cambra --- src/gui/folderman.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index 5eb1bf11f..66bf57027 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -352,12 +352,12 @@ int FolderMan::setupFoldersMigration() QDir dir(_folderConfigPath); //We need to include hidden files just in case the alias starts with '.' dir.setFilter(QDir::Files | QDir::Hidden); - const auto list = dir.entryList(); + const auto dirFiles = dir.entryList(); - // Normally there should be only one account when migrating. + // Normally there should be only one account when migrating. TODO: Change const auto accountState = AccountManager::instance()->accounts().value(0).data(); - for (const auto &alias : list) { - const auto folder = setupFolderFromOldConfigFile(alias, accountState); + for (const auto &fileName : dirFiles) { + const auto folder = setupFolderFromOldConfigFile(fileName, accountState); if (folder) { scheduleFolder(folder); emit folderSyncStateChange(folder); -- 2.30.2