Skip to content

Commit

Permalink
Merge branch 'fix_archives_selection' into 'master'
Browse files Browse the repository at this point in the history
Fix archive selection when switching profiles (#7956)

See merge request OpenMW/openmw!4118
  • Loading branch information
psi29a committed May 24, 2024
2 parents 6e0606b + 80d2b28 commit 62930cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/launcher/datafilespage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ void Launcher::DataFilesPage::populateFileViews(const QString& contentModelName)

QList<Config::SettingValue> 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); }),
Expand Down

0 comments on commit 62930cb

Please sign in to comment.