X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/427ff66291af2d8dd34ff5ee68c81436997144a1..da31cbc4ef4ea342ac1cbb2339cd85074d28ff98:/src/mac/carbon/msgdlg.cpp diff --git a/src/mac/carbon/msgdlg.cpp b/src/mac/carbon/msgdlg.cpp index 670d30644e..b859197877 100644 --- a/src/mac/carbon/msgdlg.cpp +++ b/src/mac/carbon/msgdlg.cpp @@ -122,7 +122,7 @@ int wxMessageDialog::ShowModal() { // thats a cancel missing param.defaultText = (CFStringRef) kAlertDefaultOKText ; - param.cancelText = NULL; + param.cancelText = (CFStringRef) kAlertDefaultCancelText ; param.otherText = NULL; param.helpButton = false ; param.defaultButton = kAlertStdAlertOKButton; @@ -197,9 +197,8 @@ int wxMessageDialog::ShowModal() { if (m_dialogStyle & wxCANCEL) { - // thats a cancel missing param.defaultText = (StringPtr) kAlertDefaultOKText ; - param.cancelText = NULL; + param.cancelText = (StringPtr) kAlertDefaultCancelText ; param.otherText = NULL; param.helpButton = false ; param.defaultButton = kAlertStdAlertOKButton;