Quick fix for App exiting when it still has windows (on Win32)

This commit is contained in:
Gregory John Casamento 2020-08-27 19:52:13 -04:00
parent 16071b1b10
commit ca50dfa984

View file

@ -4149,7 +4149,11 @@ struct _DelegateWrapper
else if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil) ==
NSWindows95InterfaceStyle)
{
[self terminate: self];
// if we have no windows open, then shut down...
if ([self windows] == 0)
{
[self terminate: self];
}
}
}