diff --git a/src/common/dlgcmn.cpp b/src/common/dlgcmn.cpp index 8430081563..0991a598ae 100644 --- a/src/common/dlgcmn.cpp +++ b/src/common/dlgcmn.cpp @@ -80,7 +80,7 @@ static bool CanBeUsedAsParent(wxWindow *parent) return !parent->HasExtraStyle(wxWS_EX_TRANSIENT) && parent->IsShownOnScreen() && !wxPendingDelete.Member(parent) && - parent->IsBeingDeleted(); + !parent->IsBeingDeleted(); } wxWindow *wxDialogBase::GetParentForModalDialog(wxWindow *parent) const