1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Bug 666 - Mac: Cannot "Open" audio files named with "\" using File>Open

This commit is contained in:
Leland Lucius
2021-01-22 01:05:22 -06:00
parent b4a0be99cd
commit 0123a3e3fb
3 changed files with 2 additions and 34 deletions

View File

@@ -44,22 +44,3 @@ const FilePath &PlatformCompatibility::GetExecutablePath()
return path;
}
FilePath PlatformCompatibility::ConvertSlashInFileName(const FilePath &filePath)
{
#ifdef __WXMAC__
wxString path = filePath;
wxString filename;
wxString newPath = filePath;
// int pathLen = 1;
while (!wxDirExists(wxPathOnly(newPath)) && ! path.empty()) {
path = newPath.BeforeLast('/');
filename = newPath.AfterLast('/');
newPath = path;
newPath += ':';
newPath += filename;
}
return newPath;
#else
return filePath;
#endif
}