mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-17 16:28:13 +01:00
more guarded calls
This commit is contained in:
@@ -2509,7 +2509,9 @@ void AudacityProject::OnCloseWindow(wxCloseEvent & event)
|
||||
wxYES_NO | wxCANCEL | wxICON_QUESTION,
|
||||
this);
|
||||
|
||||
if (result == wxCANCEL || (result == wxYES && !Save())) {
|
||||
if (result == wxCANCEL || (result == wxYES &&
|
||||
!GuardedCall<bool>( [&]{ return Save(); } )
|
||||
)) {
|
||||
event.Veto();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user