From 723e9feb7f232ed9dd66223da81473984851f17c Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Sat, 4 Apr 2020 03:58:27 -0500 Subject: [PATCH] Bug 2055 - ENH: Export2 does not export by default --- src/commands/ImportExportCommands.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/ImportExportCommands.cpp b/src/commands/ImportExportCommands.cpp index f0af93f6e..5bb32d71b 100644 --- a/src/commands/ImportExportCommands.cpp +++ b/src/commands/ImportExportCommands.cpp @@ -53,7 +53,9 @@ bool ImportCommand::Apply(const CommandContext & context){ bool ExportCommand::DefineParams( ShuttleParams & S ){ - S.Define( mFileName, wxT("Filename"), "exported.wav" ); + wxFileName fn = FileNames::DefaultToDocumentsFolder(wxT("/Export/Path")); + fn.SetName("exported.wav"); + S.Define(mFileName, wxT("Filename"), fn.GetFullPath()); S.Define( mnChannels, wxT("NumChannels"), 1 ); return true; }