From 3daa56f2b961d1eb465f667c8e9aa4c06d49ebc7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 8 Aug 2010 15:45:25 +0000 Subject: [PATCH] From Stephan Huber, "attached you'll find a small enhancement for GraphicsWindowCocoa, so osgViewer behaves smarter, when the computer will reboot or shutdown. In older versions the reboot/shutdown got cancelled by GraphicsWindowCocoa, now it behaves more system conform. " --- src/osgViewer/GraphicsWindowCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/GraphicsWindowCocoa.mm b/src/osgViewer/GraphicsWindowCocoa.mm index 7697caf27..8af1f154c 100644 --- a/src/osgViewer/GraphicsWindowCocoa.mm +++ b/src/osgViewer/GraphicsWindowCocoa.mm @@ -206,7 +206,7 @@ static NSRect convertToQuartzCoordinates(const NSRect& rect) { s_quit_requested = true; DEBUG_OUT("quit requested "); - return NSTerminateCancel; + return NSTerminateNow; } - (void)applicationDidFinishLaunching:(NSNotification *)aNotification