git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72425
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( wxpeer )
{
// add to parent window before showing
if ( wxpeer )
{
// 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();
if ( parentView )
{
NSView * parentView = wxpeer->GetParent()->GetPeer()->GetWXWidget();
if ( parentView )