1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-16 15:41:11 +02:00

Bug 2515 - Help buttons for 'Unable to export'

These now all have help buttons to page Error:_Unable_to_export
And they have an error code such as OGG:355 so that (later) on that page
we can describe them better - if they ever happen.
This commit is contained in:
James Crook
2020-09-21 12:43:31 +01:00
parent 6a237d67f1
commit 6d1b3854e9
9 changed files with 78 additions and 37 deletions

View File

@@ -289,7 +289,7 @@ ProgressResult ExportMP2::Export(AudacityProject *project,
if (id3len && !endOfFile) {
if ( outFile.Write(id3buffer.get(), id3len).GetLastError() ) {
// TODO: more precise message
AudacityMessageBox( XO("Unable to export") );
ShowExportErrorDialog("MP2:292");
return ProgressResult::Cancelled;
}
}
@@ -335,14 +335,14 @@ ProgressResult ExportMP2::Export(AudacityProject *project,
if (mp2BufferNumBytes < 0) {
// TODO: more precise message
AudacityMessageBox( XO("Unable to export") );
ShowExportErrorDialog("MP2:339");
updateResult = ProgressResult::Cancelled;
break;
}
if ( outFile.Write(mp2Buffer.get(), mp2BufferNumBytes).GetLastError() ) {
// TODO: more precise message
AudacityMessageBox( XO("Unable to export") );
ShowExportErrorDialog("MP2:346");
return ProgressResult::Cancelled;
}
@@ -358,7 +358,7 @@ ProgressResult ExportMP2::Export(AudacityProject *project,
if (mp2BufferNumBytes > 0)
if ( outFile.Write(mp2Buffer.get(), mp2BufferNumBytes).GetLastError() ) {
// TODO: more precise message
AudacityMessageBox( XO("Unable to export") );
ShowExportErrorDialog("MP2:362");
return ProgressResult::Cancelled;
}
@@ -367,13 +367,13 @@ ProgressResult ExportMP2::Export(AudacityProject *project,
if (id3len && endOfFile)
if ( outFile.Write(id3buffer.get(), id3len).GetLastError() ) {
// TODO: more precise message
AudacityMessageBox( XO("Unable to export") );
ShowExportErrorDialog("MP2:371");
return ProgressResult::Cancelled;
}
if ( !outFile.Close() ) {
// TODO: more precise message
AudacityMessageBox( XO("Unable to export") );
ShowExportErrorDialog("MP2:377");
return ProgressResult::Cancelled;
}