]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed incorrectly inversed test for parent [not] being deleted (patch 1624472)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 29 Dec 2006 20:16:53 +0000 (20:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 29 Dec 2006 20:16:53 +0000 (20:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dialog.cpp
src/gtk1/dialog.cpp

index 2ff8564b786a6a256c27a8f00a1171603e928fd7..75b82b73030aa0bc4ea476636bee4002c1841c9c 100644 (file)
@@ -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;
index 67f0984c0881b327c56f5250ef7359b43c9885e0..5a1129b0e2215de42fbcaf0d8632c8e00b7ac6a7 100644 (file)
@@ -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;