diff --git a/src/import/ImportMP3.cpp b/src/import/ImportMP3.cpp index 14dfc3b25..6a742f1b6 100644 --- a/src/import/ImportMP3.cpp +++ b/src/import/ImportMP3.cpp @@ -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; }