X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/643a0828dac932568e143b16b63a1cac0cd7d588..aba17e091c309d0357b0e485a8ff483c564c8695:/src/mac/dialog.cpp diff --git a/src/mac/dialog.cpp b/src/mac/dialog.cpp index cab8d1906c..ad9de2c969 100644 --- a/src/mac/dialog.cpp +++ b/src/mac/dialog.cpp @@ -63,7 +63,7 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id, if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) ) return FALSE; - MacCreateRealWindow( title , pos , size , MacRemoveBordersFromStyle(style) , name ) ; + MacCreateRealWindow( title , pos , size , MacRemoveBordersFromStyle(style) & ~(wxYES|wxOK|wxNO|wxCANCEL) , name ) ; m_macWindowBackgroundTheme = kThemeBrushDialogBackgroundActive ; SetThemeWindowBackground( (WindowRef) m_macWindow , m_macWindowBackgroundTheme , false ) ; @@ -92,7 +92,7 @@ void wxDialog::SetModal(bool flag) wxDialog::~wxDialog() { - m_isBeingDeleted = TRUE ; + m_isBeingDeleted = TRUE; Show(FALSE); }