fix possible crash when closing window while video settings dialog is open

This commit is contained in:
Arisotura 2024-10-27 13:53:12 +01:00
parent 6d345cc1ea
commit a61754bb58
1 changed files with 2 additions and 0 deletions

View File

@ -2147,6 +2147,8 @@ void MainWindow::onEmuReset()
void MainWindow::onUpdateVideoSettings(bool glchange) void MainWindow::onUpdateVideoSettings(bool glchange)
{ {
if (!emuInstance) return;
// if we have a parent window: pass the message over to the parent // if we have a parent window: pass the message over to the parent
// the topmost parent takes care of updating all the windows // the topmost parent takes care of updating all the windows
MainWindow* parentwin = (MainWindow*)parentWidget(); MainWindow* parentwin = (MainWindow*)parentWidget();