Fixed an issue where clearing a game and reactivating some collections could lead to a crash.

This commit is contained in:
Leon Styhre 2021-03-12 22:23:01 +01:00
parent b115a94668
commit cd91eb6ec9

View file

@ -363,7 +363,7 @@ void GuiGamelistOptions::openMetaDataEd()
// Update all collections where the game is present.
if (file->getType() == GAME)
CollectionSystemsManager::get()->refreshCollectionSystems(file);
CollectionSystemsManager::get()->refreshCollectionSystems(file, true);
file->getSystem()->sortSystem();
mWindow->invalidateCachedBackground();