diff options
author | Geenz <geenz@geenzo.com> | 2013-02-26 16:18:42 -0500 |
---|---|---|
committer | Geenz <geenz@geenzo.com> | 2013-02-26 16:18:42 -0500 |
commit | 21aa4b9c2494aab408fffa6c21010b6ca0a9a626 (patch) | |
tree | 1d2bd3db4e8758c71ff788d086eb6ebbe6ea0cbd /indra/llwindow/llopenglview-objc.mm | |
parent | 9a85a9d6bf4e41fdfb6113af26caf13f5a08c90e (diff) |
Setup the quit handler for when the user attempts to close the window. This restores the previous functionality of asking the user if they want to quit.
Diffstat (limited to 'indra/llwindow/llopenglview-objc.mm')
-rw-r--r-- | indra/llwindow/llopenglview-objc.mm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llwindow/llopenglview-objc.mm b/indra/llwindow/llopenglview-objc.mm index e89c9267d5..1d26ca5ca1 100644 --- a/indra/llwindow/llopenglview-objc.mm +++ b/indra/llwindow/llopenglview-objc.mm @@ -466,16 +466,19 @@ - (BOOL) becomeFirstResponder { - NSLog(@"Window gained focus!"); callFocus(); return true; } - (BOOL) resignFirstResponder { - NSLog(@"Window lost focus!"); callFocus(); return true; } +- (void) close +{ + callQuitHandler(); +} + @end |