mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +01:00
Don't make orphans in original after save-as
This commit is contained in:
@@ -608,7 +608,7 @@ bool DirManager::SetProject(wxString& newProjPath, wxString& newProjName, const
|
|||||||
BlockFilePtr b = pair.second.lock();
|
BlockFilePtr b = pair.second.lock();
|
||||||
|
|
||||||
if (b) {
|
if (b) {
|
||||||
if (moving) {
|
if (moving || !b->IsLocked()) {
|
||||||
auto result = b->GetFileName();
|
auto result = b->GetFileName();
|
||||||
auto oldPath = result.name.GetFullPath();
|
auto oldPath = result.name.GetFullPath();
|
||||||
if (!oldPath.empty())
|
if (!oldPath.empty())
|
||||||
|
|||||||
Reference in New Issue
Block a user