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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user