[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60508] trunk/blender/intern/ghost/intern/ GHOST_SystemCocoa.mm: OSX/GHOST: refine #60409 and better take multiple windows into account
jens verwiebe
info at jensverwiebe.de
Wed Oct 2 20:49:32 CEST 2013
Revision: 60508
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60508
Author: jensverwiebe
Date: 2013-10-02 18:49:32 +0000 (Wed, 02 Oct 2013)
Log Message:
-----------
OSX/GHOST: refine #60409 and better take multiple windows into account
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
Modified: trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm 2013-10-02 17:02:59 UTC (rev 60507)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm 2013-10-02 18:49:32 UTC (rev 60508)
@@ -1025,8 +1025,8 @@
}
switch (eventType) {
case GHOST_kEventWindowClose:
- // check for index 1 and discard close for mainwindow as it would quit blender without dialog
- if ([windowsList count] > 1 && (window->getCocoaWindow() != [windowsList objectAtIndex:1])) {
+ // check for index of mainwindow as it would quit blender without dialog and discard
+ if (window->getCocoaWindow() != [windowsList objectAtIndex:([windowsList count] - 1)]) {
pushEvent( new GHOST_Event(getMilliSeconds(), GHOST_kEventWindowClose, window) );
}
else {
More information about the Bf-blender-cvs
mailing list