wxModelessWindows.DeleteObject( this );
-#if TARGET_CARBON
SetWindowModality( (WindowRef)MacGetWindowRef(), kWindowModalityAppModal, NULL ) ;
-#endif
}
else
{
// 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") );