mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -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)
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user