Fixed a crash in some circumstances when unflagging the last folder as favorite.

This commit is contained in:
Leon Styhre 2020-10-22 18:35:48 +02:00
parent 075ab58bdb
commit effc0f31dc

View file

@ -292,9 +292,9 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
// was unmarked. We couldn't do this earlier as we didn't have the list
// sorted yet.
if (removedLastFavorite) {
ViewController::get()->getGameListView(mRoot->getSystem())->setCursor(
ViewController::get()->getGameListView(mRoot->getSystem())->
getFirstEntry());
ViewController::get()->getGameListView(entryToUpdate->
getSystem())->setCursor(ViewController::get()->
getGameListView(entryToUpdate->getSystem())->getFirstEntry());
}
return true;