X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf4a027ddba692bb28e7ebbe5b64c2411adbdd06..f2d990adc1b8c0e93107eb87df2ab42df849c7fa:/src/mac/control.cpp diff --git a/src/mac/control.cpp b/src/mac/control.cpp index e2be8c3b92..92e8cd3cc8 100644 --- a/src/mac/control.cpp +++ b/src/mac/control.cpp @@ -400,6 +400,10 @@ void wxControl::MacPostControlCreate() { wxMacControlActionUPP = NewControlDefUPP( wxMacControlDefintion ) ; } + // The following block of code is responsible for crashes when switching + // back to windows, which can be seen in the dialogs sample. + // It is disabled until a proper solution can be found. +#if 0 #if TARGET_CARBON /* only working under classic carbon @@ -417,6 +421,7 @@ void wxControl::MacPostControlCreate() (**cdef).function = (void(*)()) wxMacControlActionUPP; (**(ControlHandle)m_macControl).contrlDefProc = (Handle) cdef ; } +#endif #endif SetControlColorProc( (ControlHandle) m_macControl , wxMacSetupControlBackgroundUPP ) ;