1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +02:00

Reverted changes to wxPathOnly as it requires a more comprehensive change throughout Audacity. Doing half of it will break projects in Linux with '\' in their filename. (comments in Bug 120, comment #3.)

This commit is contained in:
james.k.crook 2011-02-13 23:11:51 +00:00
parent 4a762fc936
commit 207b3c6941

View File

@ -3044,15 +3044,9 @@ bool AudacityProject::Save(bool overwrite /* = true */ ,
wxString project = mFileName;
if (project.Len() > 4 && project.Mid(project.Len() - 4) == wxT(".aup"))
project = project.Mid(0, project.Len() - 4);
// We suspect that wxWidget's wxPathOnly is Windows specific and incorrectly
// treats '\' the same as '/' under Linux. So we comment it out
// wxString projName = wxFileNameFromPath(project) + wxT("_data");
// wxString projPath = wxPathOnly(project);
// ...and try this approach instead.
wxFileName filenameAsClass( project );
wxString projPath = filenameAsClass.GetPath();
wxString projName = filenameAsClass.GetFullName() + wxT("_data");
wxString projName = wxFileNameFromPath(project) + wxT("_data");
wxString projPath = wxPathOnly(project);
mWantSaveCompressed = bWantSaveCompressed;
bool success = false;