summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowmacosx.cpp
diff options
context:
space:
mode:
authorGeenz <geenz@geenzo.com>2013-02-26 16:18:42 -0500
committerGeenz <geenz@geenzo.com>2013-02-26 16:18:42 -0500
commit21aa4b9c2494aab408fffa6c21010b6ca0a9a626 (patch)
tree1d2bd3db4e8758c71ff788d086eb6ebbe6ea0cbd /indra/llwindow/llwindowmacosx.cpp
parent9a85a9d6bf4e41fdfb6113af26caf13f5a08c90e (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/llwindowmacosx.cpp')
-rw-r--r--indra/llwindow/llwindowmacosx.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp
index ac0fa54a68..24f73c5631 100644
--- a/indra/llwindow/llwindowmacosx.cpp
+++ b/indra/llwindow/llwindowmacosx.cpp
@@ -362,6 +362,14 @@ void callHandleDragDropped(std::string url)
gWindowImplementation->handleDragNDrop(url, LLWindowCallbacks::DNDA_DROPPED);
}
+void callQuitHandler()
+{
+ if(gWindowImplementation->getCallbacks()->handleCloseRequest(gWindowImplementation))
+ {
+ gWindowImplementation->getCallbacks()->handleQuit(gWindowImplementation);
+ }
+}
+
void LLWindowMacOSX::updateMouseDeltas(float* deltas)
{
if (mCursorDecoupled)