X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..f7292ebebae552238c50f8009db572edc44a315e:/src/mac/carbon/msgdlg.cpp diff --git a/src/mac/carbon/msgdlg.cpp b/src/mac/carbon/msgdlg.cpp index f7a4a0a724..732a2f48ba 100644 --- a/src/mac/carbon/msgdlg.cpp +++ b/src/mac/carbon/msgdlg.cpp @@ -120,7 +120,8 @@ int wxMessageDialog::ShowModal() param.cancelButton = 0; } } - else if (m_dialogStyle & wxOK) + // the msw implementation even shows an ok button if it is not specified, we'll do the same + else { if (m_dialogStyle & wxCANCEL) { @@ -142,10 +143,12 @@ int wxMessageDialog::ShowModal() param.cancelButton = 0; } } + /* else { skipDialog = true ; } + */ param.position = kWindowDefaultPosition; if ( !skipDialog )