mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-20 22:48:05 +02:00
This really fixes a bug, but only with certain Experimentals enabled...
... and certain other changes too. It is involved in code that makes sure the save of a file with incomplete on-demand loads properly waits for them to finish. It should not really affect production. The experimentals are EXPERIMENTAL_OD_FLAC and EXPERIMENTAL_OD_FFMPEG.
This commit is contained in:
parent
df28289058
commit
6c2773cb0b
@ -1145,12 +1145,11 @@ bool DirManager::MoveOrCopyToNewProjectDirectory(BlockFile *f, bool copy)
|
|||||||
//if it doesn't, we can assume it was written to the NEW name, which is fine.
|
//if it doesn't, we can assume it was written to the NEW name, which is fine.
|
||||||
if (oldFileName.FileExists())
|
if (oldFileName.FileExists())
|
||||||
{
|
{
|
||||||
bool ok = wxCopyFile(oldFileName.GetFullPath(),
|
auto oldPath = oldFileName.GetFullPath();
|
||||||
|
bool ok = wxCopyFile(oldPath,
|
||||||
newFileName.GetFullPath());
|
newFileName.GetFullPath());
|
||||||
if(ok && !copy)
|
if(ok && !copy)
|
||||||
// PRL: Is this a bug? Shouldn't it be the old path that
|
wxRemoveFile(oldPath);
|
||||||
// is removed?
|
|
||||||
wxRemoveFile(f->GetFileName().GetFullPath());
|
|
||||||
else if (!ok)
|
else if (!ok)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user