fixed incorrectly inversed test for parent [not] being deleted (patch 1624472)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
61f84e2493
commit
02d5015b1c
@ -118,7 +118,7 @@ int wxDialog::ShowModal()
|
||||
wxWindow *parent = wxTheApp->GetTopWindow();
|
||||
if ( parent &&
|
||||
parent != this &&
|
||||
parent->IsBeingDeleted() &&
|
||||
!parent->IsBeingDeleted() &&
|
||||
!(parent->GetExtraStyle() & wxWS_EX_TRANSIENT) )
|
||||
{
|
||||
m_parent = parent;
|
||||
|
@ -194,7 +194,7 @@ int wxDialog::ShowModal()
|
||||
wxWindow *parent = wxTheApp->GetTopWindow();
|
||||
if ( parent &&
|
||||
parent != this &&
|
||||
parent->IsBeingDeleted() &&
|
||||
!parent->IsBeingDeleted() &&
|
||||
!(parent->GetExtraStyle() & wxWS_EX_TRANSIENT) )
|
||||
{
|
||||
m_parent = parent;
|
||||
|
Loading…
Reference in New Issue
Block a user