mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 21:22:05 +01:00
Don't call QuitAudacity directly from src/menus...
... This cuts link dependency on AudacityApp.cpp, and allows the function to be private to that file
This commit is contained in:
@@ -2784,7 +2784,9 @@ void AudacityProject::OnCloseWindow(wxCloseEvent & event)
|
||||
|
||||
#if !defined(__WXMAC__)
|
||||
if (quitOnClose) {
|
||||
QuitAudacity();
|
||||
// Simulate the application Exit menu item
|
||||
wxCommandEvent evt{ wxEVT_MENU, wxID_EXIT };
|
||||
wxTheApp->AddPendingEvent( evt );
|
||||
}
|
||||
else {
|
||||
AllProjects::Reset();
|
||||
|
||||
Reference in New Issue
Block a user