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

View File

@ -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();