1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-18 17:10:05 +02:00

Bug 1580 - Residual

I'd missed the path for Export Audio and Export Selected Audio.
This commit is contained in:
James Crook 2017-02-07 11:38:56 +00:00
parent e84a5b66ba
commit 5809499cfc

View File

@ -523,7 +523,11 @@ bool Exporter::GetFilename()
wxFileName tmpFile; wxFileName tmpFile;
tmpFile.AssignHomeDir(); tmpFile.AssignHomeDir();
wxString tmpDirLoc = tmpFile.GetPath(wxPATH_GET_VOLUME); 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 #else
mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), wxT("~/Documents"))); mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), wxT("~/Documents")));
#endif #endif