1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Bug 2576 - FAT formatted disks can readily run out of space with multiple edits - wrong error message can be displayed

This commit is contained in:
Leland Lucius
2021-01-05 01:32:03 -06:00
parent 8e333e1fae
commit 50f3321154
5 changed files with 111 additions and 0 deletions

View File

@@ -269,6 +269,11 @@ bool ProjectFileManager::DoSave(const FilePath & fileName, const bool fromSaveAs
// Some confirmation dialogs
{
if (FileNames::FATFilesystemDenied(fileName))
{
return false;
}
auto &tracks = TrackList::Get( proj );
if (!tracks.Any())
{
@@ -582,6 +587,16 @@ bool ProjectFileManager::SaveCopy(const FilePath &fileName /* = wxT("") */)
filename.SetExt(wxT("aup3"));
if (FileNames::FATFilesystemDenied(filename.GetFullPath()))
{
if (project.mBatchMode)
{
return false;
}
continue;
}
if (filename.FileExists())
{
// Saving a copy of the project should never overwrite an existing project.