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:
parent
1007980bcf
commit
b94b49265a
@ -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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user