From effc0f31dcc293bf83b6276cfbe2f92b44689378 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 22 Oct 2020 18:35:48 +0200 Subject: [PATCH] Fixed a crash in some circumstances when unflagging the last folder as favorite. --- es-app/src/views/gamelist/ISimpleGameListView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/es-app/src/views/gamelist/ISimpleGameListView.cpp b/es-app/src/views/gamelist/ISimpleGameListView.cpp index d4adc79d9..bd68b7497 100644 --- a/es-app/src/views/gamelist/ISimpleGameListView.cpp +++ b/es-app/src/views/gamelist/ISimpleGameListView.cpp @@ -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;