mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 05:17:40 -07:00
fix possible crash when closing window while video settings dialog is open
This commit is contained in:
parent
6d345cc1ea
commit
a61754bb58
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user