From 80d2b289e7018e49cdb1a7b653929c478a958eff Mon Sep 17 00:00:00 2001 From: Yury Stepovikov Date: Fri, 24 May 2024 23:06:55 +0000 Subject: [PATCH] Fix archive selection when switching profiles (#7956) --- apps/launcher/datafilespage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/launcher/datafilespage.cpp b/apps/launcher/datafilespage.cpp index a15770fc73..797aa530b0 100644 --- a/apps/launcher/datafilespage.cpp +++ b/apps/launcher/datafilespage.cpp @@ -359,7 +359,7 @@ void Launcher::DataFilesPage::populateFileViews(const QString& contentModelName) QList selectedArchives = mGameSettings.getArchiveList(); QStringList contentModelSelectedArchives = mLauncherSettings.getArchiveList(contentModelName); - if (contentModelSelectedArchives.isEmpty()) + if (!contentModelSelectedArchives.isEmpty()) { selectedArchives.erase(std::remove_if(selectedArchives.begin(), selectedArchives.end(), [&](const Config::SettingValue& dir) { return mGameSettings.isUserSetting(dir); }),