Merge branch 'fix_archives_selection' into 'master'

Fix archive selection when switching profiles (#7956)

See merge request OpenMW/openmw!4118
esm4-texture
psi29a 7 months ago
commit 62930cb8db

@ -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); }),

Loading…
Cancel
Save