From e4a8d6c3fcb7669dab329ef45c074c1bf3c2f0c4 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Fri, 26 Apr 2019 00:59:16 -0400 Subject: [PATCH] Don't call AudacityApp::OnMenuAbout directly from HelpMenus.cpp --- src/menus/HelpMenus.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/menus/HelpMenus.cpp b/src/menus/HelpMenus.cpp index 3b4dab392..a4780c9d1 100644 --- a/src/menus/HelpMenus.cpp +++ b/src/menus/HelpMenus.cpp @@ -165,8 +165,9 @@ void OnAbout(const CommandContext &context) { #ifdef __WXMAC__ // Modeless dialog, consistent with other Mac applications - wxCommandEvent dummy; - wxGetApp().OnMenuAbout(dummy); + // Simulate the application Exit menu item + wxCommandEvent evt{ wxEVT_MENU, wxID_ABOUT }; + wxTheApp->AddPendingEvent( evt ); #else auto &project = context.project;