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 // was unmarked. We couldn't do this earlier as we didn't have the list
// sorted yet. // sorted yet.
if (removedLastFavorite) { if (removedLastFavorite) {
ViewController::get()->getGameListView(mRoot->getSystem())->setCursor( ViewController::get()->getGameListView(entryToUpdate->
ViewController::get()->getGameListView(mRoot->getSystem())-> getSystem())->setCursor(ViewController::get()->
getFirstEntry()); getGameListView(entryToUpdate->getSystem())->getFirstEntry());
} }
return true; return true;