From 4f7affad3f73d9fed71fefa4169949a489a40b26 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Mon, 1 Feb 2021 18:05:16 -0600 Subject: [PATCH] Bug 2135 - Audacity crashes if launched with a locked pluginregistry.cfg file --- src/AudacityApp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 94a8bba91..3e703992a 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -1297,6 +1297,10 @@ bool AudacityApp::OnInit() bool AudacityApp::InitPart2() { +#if defined(__WXMAC__) + SetExitOnFrameDelete(false); +#endif + // Make sure the temp dir isn't locked by another process. { auto key = @@ -1428,8 +1432,6 @@ bool AudacityApp::InitPart2() auto &recentFiles = FileHistory::Global(); recentFiles.UseMenu(recentMenu); - SetExitOnFrameDelete(false); - #endif //__WXMAC__ temporarywindow.Show(false); }