mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
Fix blank filenames in .aup saved then saved-as twice to same path...
Bug was introduced at commit c1d1bee6b1914faba750dd4c488e99ced32edad4
This commit is contained in:
parent
0c8890cda1
commit
e06a6fd797
@ -1377,11 +1377,12 @@ std::pair<bool, wxString> DirManager::CopyToNewProjectDirectory(BlockFile *f)
|
||||
|| newFileName.GetFullName().empty() )
|
||||
return { false, {} };
|
||||
|
||||
newPath = newFileName.GetFullPath();
|
||||
|
||||
if (newFileName != oldFileNameRef) {
|
||||
//check to see that summary exists before we copy.
|
||||
bool summaryExisted = f->IsSummaryAvailable();
|
||||
auto oldPath = oldFileNameRef.GetFullPath();
|
||||
newPath = newFileName.GetFullPath();
|
||||
if (summaryExisted) {
|
||||
auto success = MyCopyFile(oldPath, newPath);
|
||||
if (!success)
|
||||
|
Loading…
x
Reference in New Issue
Block a user