]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dialog.cpp
changed ar options to reduce build verbosity
[wxWidgets.git] / src / gtk / dialog.cpp
index d1d13da9b38e604f0ec46147ac8ff66f683e4aae..e948cddd10abb7b784a68c8324a17df2264a2566 100644 (file)
@@ -198,7 +198,7 @@ int wxDialog::ShowModal()
     if ( !GetParent() && !(GetWindowStyleFlag() & wxDIALOG_NO_PARENT) )
     {
         wxWindow *parent = wxTheApp->GetTopWindow();
-        if ( parent && parent != this )
+        if ( parent && parent != this && parent->IsBeingDeleted() )
         {
             m_parent = parent;
             gtk_window_set_transient_for( GTK_WINDOW(m_widget), GTK_WINDOW(parent->m_widget) );