Fixed an issue where enabling an empty 'recent' collection could crash the application.

This commit is contained in:
Leon Styhre 2021-02-05 17:03:43 +01:00
parent a300632ab8
commit 8c704bb47e

View file

@ -1138,7 +1138,7 @@ void CollectionSystemsManager::populateAutoCollection(CollectionSystemData* sysD
recentGamelist->setCursor(rootFolder->getSystem()->getRootFolder()->
getChildrenRecursive().front());
recentGamelist->setCursor(recentGamelist->getFirstEntry());
if (rootFolder->getChildren().size() > 0)
ViewController::get()->getGameListView(rootFolder->getSystem()).get()->
onFileChanged(rootFolder->getChildren().front(), false);
}