From 271c4b01127294946b152d2139d15ed71f1adb57 Mon Sep 17 00:00:00 2001 From: "james.k.crook" Date: Sun, 13 Feb 2011 22:44:21 +0000 Subject: [PATCH] Consistency: wxFileNameFromPath replaced by GetFullName() [related to fixes to bug 120]. --- src/Project.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Project.cpp b/src/Project.cpp index ffa0ef5ab..0d41c652b 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -3044,13 +3044,14 @@ 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); - wxString projName = wxFileNameFromPath(project) + wxT("_data"); // 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"); mWantSaveCompressed = bWantSaveCompressed; bool success = false;