Fixed an issue where the gameselector element configuration could lead to a crash.

This commit is contained in:
Leon Styhre 2022-11-05 13:39:41 +01:00
parent ef46c74f24
commit 4894ead7e7

View file

@ -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 {