From d8144314969eb7d4a91e2f99b21d94d806748faf Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 14 Mar 2025 22:09:40 +0100 Subject: [PATCH] Fixed a rare issue where reloading the application could lead to a crash --- es-app/src/views/ViewController.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index ea8decac9..eac30a4f5 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -1659,6 +1659,9 @@ void ViewController::rescanROMDirectory() // It's possible that there are no longer any games. mWindow->setBlockInput(false); mWindow->invalidateCachedBackground(); + mWindow->passHelpComponents(nullptr); + mWindow->passClockComponents(nullptr); + mWindow->passSystemStatusComponents(nullptr); noGamesDialog(); } else {