1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Bug 1899 - Fix path not terminated with separator issue.

This led Audacity to think a directory existed when it did not.
This commit is contained in:
James Crook
2019-04-04 13:30:31 +01:00
parent 71a2683c5f
commit 750014d655
2 changed files with 2 additions and 2 deletions

View File

@@ -398,7 +398,7 @@ wxFileNameWrapper FileNames::DefaultToDocumentsFolder(const wxString &preference
// IF the prefs directory doesn't exist - (Deleted by our user perhaps?)
// or exists as a file
// THEN fallback to using the default directory.
bIsDefaultPath = !IsPathAvailable( result.GetPath(wxPATH_GET_VOLUME ) );
bIsDefaultPath = !IsPathAvailable( result.GetPath(wxPATH_GET_VOLUME|wxPATH_GET_SEPARATOR ) );
if( bIsDefaultPath )
{
result.SetPath( defaultPath.GetPath( wxPATH_GET_VOLUME ) );