From 9fb0eb467977fafa95ab8e92f72966504cf59c4f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 9 May 2009 12:31:16 +0000 Subject: [PATCH] remove another occurrence of FindSuitableParent git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/dialog.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/os2/dialog.cpp b/src/os2/dialog.cpp index 5115230049..2e5ff9f96f 100644 --- a/src/os2/dialog.cpp +++ b/src/os2/dialog.cpp @@ -236,11 +236,7 @@ int wxDialog::ShowModal() if ( !m_endModalCalled ) { // modal dialog needs a parent window, so try to find one - wxWindow *parent = GetParent(); - if ( !parent ) - { - parent = FindSuitableParent(); - } + wxWindow * const parent = GetParentForModalDialog(); // remember where the focus was wxWindow *oldFocus = m_pOldFocus; -- 2.45.2