1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-23 16:08:07 +02:00

Don't call AudacityApp::OnMenuAbout directly from HelpMenus.cpp

This commit is contained in:
Paul Licameli 2019-04-26 00:59:16 -04:00
parent 6cde697a8e
commit e4a8d6c3fc

View File

@ -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;