mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 16:49:41 +02:00
Possible-Fix: Linux path separator issue, believed caused by wxGetPathOnly(). Only tested under Windows. (Bug 120).
This commit is contained in:
parent
c4609d6c58
commit
aca8734795
@ -3045,8 +3045,13 @@ bool AudacityProject::Save(bool overwrite /* = true */ ,
|
||||
if (project.Len() > 4 && project.Mid(project.Len() - 4) == wxT(".aup"))
|
||||
project = project.Mid(0, project.Len() - 4);
|
||||
wxString projName = wxFileNameFromPath(project) + wxT("_data");
|
||||
wxString projPath = wxPathOnly(project);
|
||||
|
||||
// We suspect that wxWidget's wxPathOnly is Windows specific and incorrectly
|
||||
// treats '\' the same as '/' under Linux. So we comment it out
|
||||
// wxString projPath = wxPathOnly(project);
|
||||
// ...and try this approach instead.
|
||||
wxFileName filenameAsClass( project );
|
||||
wxString projPath = filenameAsClass.GetPath();
|
||||
|
||||
mWantSaveCompressed = bWantSaveCompressed;
|
||||
bool success = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user