mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-03-30 06:46:55 +00:00
Remove extraneous parameter and fix error dialog title.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20061
This commit is contained in:
parent
1ee3131e4a
commit
10237c4270
@ -167,7 +167,7 @@ int OKOrCancelDialog( wxWindow* aParent, const wxString& aWarning, const wxStrin
|
||||
|
||||
|
||||
// DisplayError should be deprecated, use DisplayErrorMessage instead
|
||||
void DisplayError( wxWindow* aParent, const wxString& aText, int aDisplayTime )
|
||||
void DisplayError( wxWindow* aParent, const wxString& aText )
|
||||
{
|
||||
if( !wxTheApp || !wxTheApp->IsMainLoopRunning() )
|
||||
{
|
||||
@ -182,10 +182,9 @@ void DisplayError( wxWindow* aParent, const wxString& aText, int aDisplayTime )
|
||||
}
|
||||
|
||||
wxMessageDialog* dlg;
|
||||
int icon = aDisplayTime > 0 ? wxICON_INFORMATION : wxICON_ERROR;
|
||||
|
||||
dlg = new wxMessageDialog( aParent, aText, _( "Warning" ),
|
||||
wxOK | wxCENTRE | wxRESIZE_BORDER | icon | wxSTAY_ON_TOP );
|
||||
dlg = new wxMessageDialog( aParent, aText, _( "Error" ),
|
||||
wxOK | wxCENTRE | wxRESIZE_BORDER | wxICON_ERROR | wxSTAY_ON_TOP );
|
||||
|
||||
dlg->ShowModal();
|
||||
dlg->Destroy();
|
||||
|
@ -86,10 +86,8 @@ KICOMMON_API bool ConfirmRevertDialog( wxWindow* parent, const wxString& aMessag
|
||||
|
||||
/**
|
||||
* Display an error or warning message box with \a aMessage.
|
||||
*
|
||||
* @warning Setting \a displaytime does not work. Do not use it.
|
||||
*/
|
||||
KICOMMON_API void DisplayError( wxWindow* aParent, const wxString& aText, int aDisplayTime = 0 );
|
||||
KICOMMON_API void DisplayError( wxWindow* aParent, const wxString& aText );
|
||||
|
||||
/**
|
||||
* Display an error message with \a aMessage
|
||||
|
Loading…
Reference in New Issue
Block a user