mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Fixed a crash when unflagging the last file entry as favorite.
This commit is contained in:
parent
e51c7ddf8c
commit
546f6304ef
|
@ -307,7 +307,9 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
// Jump to the first entry in the gamelist if the last favorite was unmarked.
|
// Jump to the first entry in the gamelist if the last favorite was unmarked.
|
||||||
if (foldersOnTop && removedLastFavorite &&
|
if (foldersOnTop && removedLastFavorite &&
|
||||||
!entryToUpdate->getSystem()->isCustomCollection())
|
!entryToUpdate->getSystem()->isCustomCollection())
|
||||||
setCursor(getFirstGameEntry());
|
ViewController::get()->getGameListView(entryToUpdate->getSystem())->
|
||||||
|
setCursor(ViewController::get()->getGameListView(entryToUpdate->
|
||||||
|
getSystem())->getFirstGameEntry());
|
||||||
else if (removedLastFavorite &&
|
else if (removedLastFavorite &&
|
||||||
!entryToUpdate->getSystem()->isCustomCollection())
|
!entryToUpdate->getSystem()->isCustomCollection())
|
||||||
setCursor(getFirstEntry());
|
setCursor(getFirstEntry());
|
||||||
|
|
Loading…
Reference in a new issue