From 183d3dd1d8865084d9af46fa446a4106d8ad9662 Mon Sep 17 00:00:00 2001 From: James Crook Date: Thu, 17 Jun 2021 17:45:27 +0100 Subject: [PATCH] Bug 2807 - Error message for a failed import of malforned MP3 lacks a "?" help button --- src/import/ImportMP3.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; }