From 5809499cfc3d25e61e54794e6d62f72d94c33986 Mon Sep 17 00:00:00 2001 From: James Crook Date: Tue, 7 Feb 2017 11:38:56 +0000 Subject: [PATCH] Bug 1580 - Residual I'd missed the path for Export Audio and Export Selected Audio. --- src/export/Export.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/export/Export.cpp b/src/export/Export.cpp index 24c03dd90..b8f99f56b 100644 --- a/src/export/Export.cpp +++ b/src/export/Export.cpp @@ -523,7 +523,11 @@ bool Exporter::GetFilename() wxFileName tmpFile; tmpFile.AssignHomeDir(); wxString tmpDirLoc = tmpFile.GetPath(wxPATH_GET_VOLUME); - mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), tmpDirLoc + "\\Documents")); + mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), tmpDirLoc + "\\Documents\\Audacity")); + // The path might not exist. + // There is no error if the path could not be created. That's OK. + // The dialog that Audacity offers will allow the user to select a valid directory. + mFilename.Mkdir(0755, wxPATH_MKDIR_FULL); #else mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), wxT("~/Documents"))); #endif