Move message dialogs to KICAD_MESSAGE_DIALOG define

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22830
This commit is contained in:
Mark Roszko
2026-01-25 12:42:13 -05:00
parent f6c3627e66
commit 314735e2fc
25 changed files with 121 additions and 112 deletions
+2 -1
View File
@@ -39,6 +39,7 @@
#include <wx/dcclient.h>
#include <wx/log.h>
#include <wx/string.h>
#include <confirm.h>
#define DEFAULT_DPI 300 // the image DPI used in formats that do not define a DPI
@@ -586,7 +587,7 @@ bool DROP_FILE::OnDropFiles( wxCoord x, wxCoord y, const wxArrayString& filename
{
wxString cap = _( "Replace Loaded File?" );
wxString msg = _( "There is already a file loaded. Do you want to replace it?" );
wxMessageDialog acceptFileDlg( m_panel, msg, cap, wxYES_NO | wxICON_QUESTION | wxYES_DEFAULT );
KICAD_MESSAGE_DIALOG acceptFileDlg( m_panel, msg, cap, wxYES_NO | wxICON_QUESTION | wxYES_DEFAULT );
int replace = acceptFileDlg.ShowModal();
if( replace == wxID_NO )