restrict change from r71719 because otherwise apps like docview sample in ddi mode are not allowing their different child frames to be z-reordered

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2012-09-06 14:24:28 +00:00
parent 58f513e990
commit b7e3daf441

View File

@ -688,7 +688,8 @@ bool wxNonOwnedWindowCocoaImpl::Show(bool show)
if ( wxpeer ) if ( wxpeer )
{ {
// add to parent window before showing // add to parent window before showing
if ( wxpeer->GetParent() ) wxDialog * const dialog = wxDynamicCast(wxpeer, wxDialog);
if ( wxpeer->GetParent() && dialog && dialog->IsModal())
{ {
NSView * parentView = wxpeer->GetParent()->GetPeer()->GetWXWidget(); NSView * parentView = wxpeer->GetParent()->GetPeer()->GetWXWidget();
if ( parentView ) if ( parentView )