mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Fixed a rare crash when editing custom collections.
This commit is contained in:
parent
fc03134ef0
commit
b073579f44
|
@ -1214,9 +1214,9 @@ void ViewController::reloadGamelistView(GamelistView* view, bool reloadTheme)
|
||||||
std::shared_ptr<GamelistView> newView {getGamelistView(system)};
|
std::shared_ptr<GamelistView> newView {getGamelistView(system)};
|
||||||
|
|
||||||
// To counter having come from a placeholder.
|
// To counter having come from a placeholder.
|
||||||
if (!cursor->isPlaceHolder()) {
|
if (!cursor->isPlaceHolder() && cursor->getParent() != nullptr)
|
||||||
newView->setCursor(cursor);
|
newView->setCursor(cursor);
|
||||||
}
|
|
||||||
if (isCurrent)
|
if (isCurrent)
|
||||||
mCurrentView = newView;
|
mCurrentView = newView;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue