Minor UI improvement.

Use wxMessageDialog instead of wxRichMessageDialog in DisplayErrorMessage
so the platform specific message dialog is used.  wxRichMessageDialog
looks different than the stock message dialog on every platform so only
use it when a checkbox is required.
This commit is contained in:
Wayne Stambaugh 2019-12-14 12:29:38 -05:00
parent 965478365a
commit 1abb198fb4
1 changed files with 4 additions and 5 deletions

View File

@ -248,14 +248,13 @@ void DisplayError( wxWindow* aParent, const wxString& aText, int aDisplayTime )
void DisplayErrorMessage( wxWindow* aParent, const wxString& aText, const wxString& aExtraInfo )
{
wxRichMessageDialog* dlg;
int icon = wxICON_ERROR;
wxMessageDialog* dlg;
dlg = new wxRichMessageDialog( aParent, aText, _( "Error" ),
wxOK | wxCENTRE | wxRESIZE_BORDER | icon | wxSTAY_ON_TOP );
dlg = new wxMessageDialog( aParent, aText, _( "Error" ),
wxOK | wxCENTRE | wxRESIZE_BORDER | wxICON_ERROR | wxSTAY_ON_TOP );
if( !aExtraInfo.IsEmpty() )
dlg->ShowDetailedText( aExtraInfo );
dlg->SetExtendedMessage( aExtraInfo );
dlg->ShowModal();
dlg->Destroy();