X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/427ff66291af2d8dd34ff5ee68c81436997144a1..78c67cb6425acb3b93d48a7a14f554bcd32ed72a:/src/mac/msgdlg.cpp?ds=sidebyside diff --git a/src/mac/msgdlg.cpp b/src/mac/msgdlg.cpp index 670d30644e..b859197877 100644 --- a/src/mac/msgdlg.cpp +++ b/src/mac/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;