X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..b98738705265d77937c62bdfbf02343ccc1444eb:/src/mac/carbon/msgdlg.cpp diff --git a/src/mac/carbon/msgdlg.cpp b/src/mac/carbon/msgdlg.cpp index 5250cb51cf..6f1cfbfdc6 100644 --- a/src/mac/carbon/msgdlg.cpp +++ b/src/mac/carbon/msgdlg.cpp @@ -6,7 +6,7 @@ // Created: 04/01/98 // RCS-ID: $$ // Copyright: (c) Stefan Csomor -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -61,6 +61,7 @@ int wxMessageDialog::ShowModal() param.movable = true; param.flags = 0 ; + param.version = kStdCFStringAlertVersionOne ; bool skipDialog = false ; @@ -72,7 +73,7 @@ int wxMessageDialog::ShowModal() param.cancelText = (CFStringRef) kAlertDefaultCancelText; param.otherText = cfNoString ; param.helpButton = false ; - param.defaultButton = kAlertStdAlertOKButton; + param.defaultButton = m_dialogStyle & wxNO_DEFAULT ? kAlertStdAlertOtherButton : kAlertStdAlertOKButton; param.cancelButton = kAlertStdAlertCancelButton; } else @@ -81,7 +82,7 @@ int wxMessageDialog::ShowModal() param.cancelText = NULL; param.otherText = cfNoString ; param.helpButton = false ; - param.defaultButton = kAlertStdAlertOKButton; + param.defaultButton = m_dialogStyle & wxNO_DEFAULT ? kAlertStdAlertOtherButton : kAlertStdAlertOKButton; param.cancelButton = 0; } }