MCPcopy Create free account
hub / github.com/audacity/audacity / ShowError

Method ShowError

libraries/lib-project-file-io/ProjectFileIO.cpp:2465–2475  ·  view source on GitHub ↗

Displays an error dialog with a button that offers help

Source from the content-addressed store, hash-verified

2463
2464/// Displays an error dialog with a button that offers help
2465void ProjectFileIO::ShowError(const BasicUI::WindowPlacement &placement,
2466 const TranslatableString &dlogTitle,
2467 const TranslatableString &message,
2468 const wxString &helpPage)
2469{
2470 using namespace audacity;
2471 using namespace BasicUI;
2472 ShowErrorDialog( placement, dlogTitle, message, helpPage,
2473 ErrorDialogOptions{ ErrorDialogType::ModalErrorReport }
2474 .Log(ToWString(GetLastLog())));
2475}
2476
2477const TranslatableString &ProjectFileIO::GetLastError() const
2478{

Callers 1

OpenProjectFileMethod · 0.80

Calls 3

ShowErrorDialogFunction · 0.85
ToWStringFunction · 0.85
LogMethod · 0.45

Tested by

no test coverage detected