]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dialog.cpp
Small code cleanup
[wxWidgets.git] / src / gtk1 / dialog.cpp
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;