]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/dialog.cpp
don't return garbage from GetRawBitmap
[wxWidgets.git] / src / mac / dialog.cpp
index 7b7bfc024b7899c5636d789022edcb6947d7ef24..cab8d1906c609fb827a1cb7879478ace7f490f46 100644 (file)
@@ -78,6 +78,9 @@ void wxDialog::SetModal(bool flag)
         m_windowStyle |= wxDIALOG_MODAL;
         
         wxModelessWindows.DeleteObject(this);
         m_windowStyle |= wxDIALOG_MODAL;
         
         wxModelessWindows.DeleteObject(this);
+#if TARGET_CARBON
+        SetWindowModality( (WindowRef) MacGetWindowRef() , kWindowModalityAppModal , NULL ) ;
+#endif
     }
     else
     {
     }
     else
     {