OSX: more descriptive comment

This commit is contained in:
Jens Verwiebe
2013-09-29 10:11:49 +00:00
parent 20053f4954
commit d528b4c9bb

View File

@@ -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) );
}