Make "No" button default in the assert dialog

This makes more sense than the default default (sic) "Yes" button,
pressing which accidentally could kill the program if not running under
the debugger.
This commit is contained in:
Vadim Zeitlin
2017-10-20 02:38:14 +02:00
parent 2e3f0d95dd
commit c52ed1aff3
2 changed files with 5 additions and 2 deletions

View File

@@ -1307,7 +1307,7 @@ bool DoShowAssertDialog(const wxString& msg)
wxT("further warnings.");
switch ( ::MessageBox(NULL, msgDlg.t_str(), wxT("wxWidgets Debug Alert"),
MB_YESNOCANCEL | MB_ICONSTOP ) )
MB_YESNOCANCEL | MB_DEFBUTTON2 | MB_ICONSTOP ) )
{
case IDYES:
// If we called wxTrap() directly from here, the programmer would