Applied #10007: SetWindowGroupParent hangs in Mac Carbon dialog.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -153,10 +153,13 @@ void wxDialog::DoShowModal()
|
|||||||
if ( GetParent() == NULL )
|
if ( GetParent() == NULL )
|
||||||
{
|
{
|
||||||
windowGroup = GetWindowGroup(windowRef) ;
|
windowGroup = GetWindowGroup(windowRef) ;
|
||||||
|
if ( windowGroup != GetWindowGroupOfClass( kMovableModalWindowClass ) )
|
||||||
|
{
|
||||||
formerParentGroup = GetWindowGroupParent( windowGroup );
|
formerParentGroup = GetWindowGroupParent( windowGroup );
|
||||||
SetWindowGroupParent( windowGroup, GetWindowGroupOfClass( kMovableModalWindowClass ) );
|
SetWindowGroupParent( windowGroup, GetWindowGroupOfClass( kMovableModalWindowClass ) );
|
||||||
resetGroupParent = true;
|
resetGroupParent = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
BeginAppModalStateForWindow(windowRef) ;
|
BeginAppModalStateForWindow(windowRef) ;
|
||||||
|
|
||||||
while ( IsModalShowing() )
|
while ( IsModalShowing() )
|
||||||
|
Reference in New Issue
Block a user