From 4894ead7e7123ff0fbd848b5ee6cd03f79f114a1 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 5 Nov 2022 13:39:41 +0100 Subject: [PATCH] Fixed an issue where the gameselector element configuration could lead to a crash. --- es-core/src/components/GameSelectorComponent.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/es-core/src/components/GameSelectorComponent.h b/es-core/src/components/GameSelectorComponent.h index b08ffcc5a..4f16d7b09 100644 --- a/es-core/src/components/GameSelectorComponent.h +++ b/es-core/src/components/GameSelectorComponent.h @@ -31,6 +31,8 @@ public: if (std::find(SystemData::sSystemVector.cbegin(), SystemData::sSystemVector.cend(), mSystem) != SystemData::sSystemVector.cend()) mSystem->getRootFolder()->setUpdateListCallback(nullptr); + else if (SystemData::sSystemVector.size() != 0 && mSystem->isGroupedCustomCollection()) + mSystem->getRootFolder()->setUpdateListCallback(nullptr); } enum class GameSelection {