1
0
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:
Paul Licameli 2017-10-21 11:24:03 -04:00
parent e050516702
commit f370df6520

View File

@ -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());
} }
} }
} }