mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-03 13:14:33 +01:00
Avoid long repetitions of message boxes for opening corrupt project
This commit is contained in:
@@ -55,6 +55,7 @@ class MessageBoxException /* not final */ : public AudacityException
|
||||
void DelayedHandlerAction() override;
|
||||
|
||||
protected:
|
||||
// If default-constructed with empty caption, it makes no message box.
|
||||
explicit MessageBoxException( const wxString &caption = wxString{} );
|
||||
~MessageBoxException() override;
|
||||
|
||||
@@ -74,7 +75,7 @@ class SimpleMessageBoxException /* not final */ : public MessageBoxException
|
||||
{
|
||||
public:
|
||||
explicit SimpleMessageBoxException( const wxString &message_,
|
||||
const wxString &caption = wxString{} )
|
||||
const wxString &caption = _("Message") )
|
||||
: MessageBoxException{ caption }
|
||||
, message{ message_ }
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user