]> git.saurik.com Git - wxWidgets.git/commitdiff
remove another occurrence of FindSuitableParent
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 May 2009 12:31:16 +0000 (12:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 May 2009 12:31:16 +0000 (12:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/dialog.cpp

index 51152300491fbd8068633ef14aec5a59a8cb9bb8..2e5ff9f96f7999b6a274fce760ff74ce0372527b 100644 (file)
@@ -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;