mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-17 01:10:10 +00:00
Fix archive selection when switching profiles (#7956)
This commit is contained in:
parent
d15be7a685
commit
80d2b289e7
@ -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…
Reference in New Issue
Block a user