From 02d5015b1cbb99d7a2e2ab7818cd46b2b4514957 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 29 Dec 2006 20:16:53 +0000 Subject: [PATCH] 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 --- src/gtk/dialog.cpp | 2 +- src/gtk1/dialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index 2ff8564b78..75b82b7303 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -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; diff --git a/src/gtk1/dialog.cpp b/src/gtk1/dialog.cpp index 67f0984c08..5a1129b0e2 100644 --- a/src/gtk1/dialog.cpp +++ b/src/gtk1/dialog.cpp @@ -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;