From 739da04322abff905fdd67a8e821f6db14ea2eee Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 9 Feb 2014 18:18:36 -0800 Subject: [PATCH] Also need this to prevent double-shutdown. That exit(0) before was skipping a lot of stuff.. --- UI/MainScreen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 1d97bf5a88..a4b8b31844 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -942,7 +942,10 @@ UI::EventReturn MainScreen::OnForums(UI::EventParams &e) { UI::EventReturn MainScreen::OnExit(UI::EventParams &e) { System_SendMessage("event", "exitprogram"); +#ifndef USING_WIN_UI NativeShutdown(); +#endif + globalUIState = UISTATE_EXIT; return UI::EVENT_DONE; }