mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-18 04:45:39 +00:00
Fixed an issue where enabling an empty 'recent' collection could crash the application.
This commit is contained in:
parent
a300632ab8
commit
8c704bb47e
|
@ -1138,7 +1138,7 @@ void CollectionSystemsManager::populateAutoCollection(CollectionSystemData* sysD
|
||||||
recentGamelist->setCursor(rootFolder->getSystem()->getRootFolder()->
|
recentGamelist->setCursor(rootFolder->getSystem()->getRootFolder()->
|
||||||
getChildrenRecursive().front());
|
getChildrenRecursive().front());
|
||||||
recentGamelist->setCursor(recentGamelist->getFirstEntry());
|
recentGamelist->setCursor(recentGamelist->getFirstEntry());
|
||||||
|
if (rootFolder->getChildren().size() > 0)
|
||||||
ViewController::get()->getGameListView(rootFolder->getSystem()).get()->
|
ViewController::get()->getGameListView(rootFolder->getSystem()).get()->
|
||||||
onFileChanged(rootFolder->getChildren().front(), false);
|
onFileChanged(rootFolder->getChildren().front(), false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue