From: Vadim Zeitlin Date: Sat, 9 May 2009 12:31:16 +0000 (+0000) Subject: remove another occurrence of FindSuitableParent X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9fb0eb467977fafa95ab8e92f72966504cf59c4f?ds=sidebyside remove another occurrence of FindSuitableParent git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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;