From 824293750257fac97682048c6e5345a9b41a2f44 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Sun, 16 Aug 2015 04:01:49 -0500 Subject: [PATCH] Fix double open of files specified on the command line (wx3 issue) --- src/AudacityApp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 8cd39de17..919bca0c4 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -1465,10 +1465,14 @@ bool AudacityApp::OnInit() return false; } +// As of wx3, there's no need to process the filename arguments as they +// will be sent view the MacOpenFile() method. +#if !defined(__WXMAC__) for (size_t i = 0, cnt = parser->GetParamCount(); i < cnt; i++) { MRUOpen(parser->GetParam(i)); - } + } +#endif } delete parser;