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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user