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:
parent
965478365a
commit
1abb198fb4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue