OSX: more descriptive comment
This commit is contained in:
@@ -1025,7 +1025,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleWindowEvent(GHOST_TEventType eventType,
|
||||
}
|
||||
switch (eventType) {
|
||||
case GHOST_kEventWindowClose:
|
||||
// make sure index 1 exists and compare window adress
|
||||
// check for index 1 and discard close for mainwindow as it would quit blender without dialog
|
||||
if ([windowsList count] > 1 && (window->get_m_window() != [windowsList objectAtIndex:1])) {
|
||||
pushEvent( new GHOST_Event(getMilliSeconds(), GHOST_kEventWindowClose, window) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user