mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-24 16:20:05 +02:00
Sense empty .au at opening, treat as missing, give recovery options
This commit is contained in:
parent
e050516702
commit
f370df6520
@ -1978,11 +1978,13 @@ void DirManager::FindMissingAUs(
|
|||||||
wxFileNameWrapper fileName{ MakeBlockFilePath(key) };
|
wxFileNameWrapper fileName{ MakeBlockFilePath(key) };
|
||||||
fileName.SetName(key);
|
fileName.SetName(key);
|
||||||
fileName.SetExt(wxT("au"));
|
fileName.SetExt(wxT("au"));
|
||||||
if (!fileName.FileExists())
|
const auto path = fileName.GetFullPath();
|
||||||
|
if (!fileName.FileExists() ||
|
||||||
|
wxFile{ path }.Length() == 0)
|
||||||
{
|
{
|
||||||
missingAUHash[key] = b;
|
missingAUHash[key] = b;
|
||||||
wxLogWarning(_("Missing data block file: '%s'"),
|
wxLogWarning(_("Missing data block file: '%s'"),
|
||||||
fileName.GetFullPath().c_str());
|
path.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user