wxModelessWindows.DeleteObject( this );
-#if TARGET_CARBON
SetWindowModality( (WindowRef)MacGetWindowRef(), kWindowModalityAppModal, NULL ) ;
-#endif
}
else
{
wxDialog::~wxDialog()
{
m_isBeingDeleted = true;
+
+ // if the dialog is modal, this will end its event loop
Show(false);
}
// nothing to do
return false;
+ if (show && CanDoLayoutAdaptation())
+ DoLayoutAdaptation();
+
if ( show )
// usually will result in TransferDataToWindow() being called
InitDialog();
return true;
}
-#if !TARGET_CARBON
-extern bool s_macIsInModalLoop ;
-#endif
-
void wxDialog::DoShowModal()
{
wxCHECK_RET( !IsModal(), wxT("DoShowModal() called twice") );