From cd91eb6ec92534565cf42dc0c7b566a585c2a278 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Fri, 12 Mar 2021 22:23:01 +0100
Subject: [PATCH] Fixed an issue where clearing a game and reactivating some
 collections could lead to a crash.

---
 es-app/src/guis/GuiGamelistOptions.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/es-app/src/guis/GuiGamelistOptions.cpp b/es-app/src/guis/GuiGamelistOptions.cpp
index 616b66590..d3e368cb0 100644
--- a/es-app/src/guis/GuiGamelistOptions.cpp
+++ b/es-app/src/guis/GuiGamelistOptions.cpp
@@ -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();