Bug 2807 - Error message for a failed import of malforned MP3 lacks a "?" help button

This commit is contained in:
James Crook 2021-06-17 17:45:27 +01:00
parent 28c7805459
commit 183d3dd1d8
1 changed files with 6 additions and 2 deletions

View File

@ -32,6 +32,7 @@
#include "Import.h"
#include "ImportPlugin.h"
#include "../widgets/ErrorDialog.h"
#include "../Project.h"
#define DESC XO("MP3 files")
@ -1097,8 +1098,11 @@ enum mad_flow MP3ImportFileHandle::ErrorCB(struct mad_stream *stream,
}
// Let the user know about the error
AudacityMessageBox(XO("Import failed\n\nThis is likely caused by a malformed MP3.\n\n"));
ShowErrorDialog(
nullptr,
AudacityMessageBoxCaptionStr(),
XO("Import failed\n\nThis is likely caused by a malformed MP3.\n\n"),
"Opening_malformed_MP3_files");
return MAD_FLOW_BREAK;
}