mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 23:59:41 +02:00
Ensure error dialog is displayed in a couple more instances
This commit is contained in:
parent
6a5d4fdbc0
commit
8fa0b13432
@ -2102,6 +2102,12 @@ bool ProjectFileIO::SaveProject(
|
||||
// after we switch to the new file.
|
||||
if (!CopyTo(fileName, XO("Saving project"), false))
|
||||
{
|
||||
ShowErrorDialog(
|
||||
nullptr,
|
||||
XO("Error Saving Project"),
|
||||
FileException::WriteFailureMessage(fileName),
|
||||
"Error:_Disk_full_or_not_writable"
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -2181,8 +2187,15 @@ bool ProjectFileIO::SaveProject(
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( !UpdateSaved( nullptr ) )
|
||||
if ( !UpdateSaved( nullptr ) ) {
|
||||
ShowErrorDialog(
|
||||
nullptr,
|
||||
XO("Error Saving Project"),
|
||||
FileException::WriteFailureMessage(fileName),
|
||||
"Error:_Disk_full_or_not_writable"
|
||||
);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Reaching this point defines success and all the rest are no-fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user