1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 16:40:07 +02:00

Don't make orphans in original after save-as

This commit is contained in:
Paul Licameli 2017-11-08 03:45:47 -05:00
parent 1007980bcf
commit b94b49265a

View File

@ -608,7 +608,7 @@ bool DirManager::SetProject(wxString& newProjPath, wxString& newProjName, const
BlockFilePtr b = pair.second.lock();
if (b) {
if (moving) {
if (moving || !b->IsLocked()) {
auto result = b->GetFileName();
auto oldPath = result.name.GetFullPath();
if (!oldPath.empty())