1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-04 06:29:07 +02:00

Timer record exits Audacity more gracefully...

... the direct call to exit(0) caused SIGABRT for me during shutdown on Mac.
This commit is contained in:
Paul Licameli 2018-01-05 15:41:04 -05:00
parent 9a58ead5c8
commit e19a4fa943

View File

@ -8132,8 +8132,7 @@ void AudacityProject::OnTimerRecord(const CommandContext &)
// No action required
break;
case POST_TIMER_RECORD_CLOSE:
// Quit Audacity
exit(0);
wxTheApp->CallAfter( []{ QuitAudacity(); } );
break;
case POST_TIMER_RECORD_RESTART:
// Restart System