OSX/GHOST: fix own issue in 60510, should now (hopefully) cover all multiple window combinations
This commit is contained in:
parent
e308c2f166
commit
be20171f39
@ -1025,10 +1025,8 @@ GHOST_TSuccess GHOST_SystemCocoa::handleWindowEvent(GHOST_TEventType eventType,
|
||||
}
|
||||
switch (eventType) {
|
||||
case GHOST_kEventWindowClose:
|
||||
// make window that should be closed frontmost
|
||||
[window->getCocoaWindow() makeKeyAndOrderFront:nil];
|
||||
// check for index of mainwindow as it would quit blender without dialog and discard
|
||||
if (window->getCocoaWindow() != [windowsList objectAtIndex:([windowsList count] - 1)]) {
|
||||
if ([windowsList count] > 1 && window->getCocoaWindow() != [windowsList objectAtIndex:[windowsList count] - 1]) {
|
||||
pushEvent( new GHOST_Event(getMilliSeconds(), GHOST_kEventWindowClose, window) );
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user