1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 17:19:43 +02:00

Consistency: wxFileNameFromPath replaced by GetFullName() [related to fixes to bug 120].

This commit is contained in:
james.k.crook 2011-02-13 22:44:21 +00:00
parent aca8734795
commit 271c4b0112

View File

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