diff options
Diffstat (limited to 'Application.cpp')
-rw-r--r-- | Application.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Application.cpp b/Application.cpp index 0ae5e9f1..f1be7262 100644 --- a/Application.cpp +++ b/Application.cpp @@ -149,7 +149,7 @@ bool Application::OnInit() Connect(wxEVT_QUERY_END_SESSION, wxEventHandler(Application::onQueryEndSession), nullptr, this); Connect(wxEVT_END_SESSION, wxEventHandler(Application::onQueryEndSession), nullptr, this); - //do not call wxApp::OnInit() to avoid using default commandline parser + //do not call wxApp::OnInit() to avoid using wxWidgets command line parser //Note: app start is deferred: batch mode requires the wxApp eventhandler to be established for UI update events. This is not the case at the time of OnInit()! Connect(EVENT_ENTER_EVENT_LOOP, wxEventHandler(Application::onEnterEventLoop), nullptr, this); @@ -160,6 +160,13 @@ bool Application::OnInit() } +int Application::OnExit() +{ + releaseWxLocale(); + return wxApp::OnExit(); +} + + void Application::onEnterEventLoop(wxEvent& event) { Disconnect(EVENT_ENTER_EVENT_LOOP, wxEventHandler(Application::onEnterEventLoop), nullptr, this); |