Applied #10007: SetWindowGroupParent hangs in Mac Carbon dialog.cpp

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2009-09-25 10:11:24 +00:00
parent 1508fcaccd
commit 58d4ed8a11

View File

@ -41,9 +41,12 @@ void wxDialog::DoShowModal()
if ( GetParent() == NULL )
{
windowGroup = GetWindowGroup(windowRef) ;
formerParentGroup = GetWindowGroupParent( windowGroup );
SetWindowGroupParent( windowGroup, GetWindowGroupOfClass( kMovableModalWindowClass ) );
resetGroupParent = true;
if ( windowGroup != GetWindowGroupOfClass( kMovableModalWindowClass ) )
{
formerParentGroup = GetWindowGroupParent( windowGroup );
SetWindowGroupParent( windowGroup, GetWindowGroupOfClass( kMovableModalWindowClass ) );
resetGroupParent = true;
}
}
BeginAppModalStateForWindow(windowRef) ;