remove another occurrence of FindSuitableParent

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-05-09 12:31:16 +00:00
parent 8bda0ec6a3
commit 9fb0eb4679

View File

@ -236,11 +236,7 @@ int wxDialog::ShowModal()
if ( !m_endModalCalled ) if ( !m_endModalCalled )
{ {
// modal dialog needs a parent window, so try to find one // modal dialog needs a parent window, so try to find one
wxWindow *parent = GetParent(); wxWindow * const parent = GetParentForModalDialog();
if ( !parent )
{
parent = FindSuitableParent();
}
// remember where the focus was // remember where the focus was
wxWindow *oldFocus = m_pOldFocus; wxWindow *oldFocus = m_pOldFocus;