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:
parent
8bda0ec6a3
commit
9fb0eb4679
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user