X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9efc294a979fb4ae801f7dc37af35677301212d..c1aec196fc3e544d0188cfc975344887eeb10e0f:/src/mac/carbon/dialog.cpp diff --git a/src/mac/carbon/dialog.cpp b/src/mac/carbon/dialog.cpp index bb90e3812b..8743e10547 100644 --- a/src/mac/carbon/dialog.cpp +++ b/src/mac/carbon/dialog.cpp @@ -62,15 +62,11 @@ void wxDialog::SetModal( bool flag ) { m_isModalStyle = true; - wxModelessWindows.DeleteObject( this ); - SetWindowModality( (WindowRef)MacGetWindowRef(), kWindowModalityAppModal, NULL ) ; } else { m_isModalStyle = false; - - wxModelessWindows.Append( this ); } }