]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dialog.cpp
added HasExtraStyle()
[wxWidgets.git] / src / gtk / 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;