mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
fix possible crash when closing window while video settings dialog is open
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user