From a61754bb589cdacd45db78dca504dcf840d9f04e Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sun, 27 Oct 2024 13:53:12 +0100 Subject: [PATCH] fix possible crash when closing window while video settings dialog is open --- src/frontend/qt_sdl/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/qt_sdl/Window.cpp b/src/frontend/qt_sdl/Window.cpp index fef51217..5115045a 100644 --- a/src/frontend/qt_sdl/Window.cpp +++ b/src/frontend/qt_sdl/Window.cpp @@ -2147,6 +2147,8 @@ void MainWindow::onEmuReset() void MainWindow::onUpdateVideoSettings(bool glchange) { + if (!emuInstance) return; + // if we have a parent window: pass the message over to the parent // the topmost parent takes care of updating all the windows MainWindow* parentwin = (MainWindow*)parentWidget();