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:
@@ -41,10 +41,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) ;
|
||||||
|
|
||||||
wxEventLoopGuarantor ensureHasLoop;
|
wxEventLoopGuarantor ensureHasLoop;
|
||||||
|
Reference in New Issue
Block a user