Set proper level also for non-modal dialogs in wxOSX

Fixes #4355
This commit is contained in:
Lauri Nurmi
2017-02-10 23:06:08 +02:00
parent 2e2881f4de
commit e36aa64752

View File

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