X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4506b24a05ead0374f9965b433c1038f5596340c..79a73b4f86090278c242a8cca5fd9147a31a4419:/src/mac/carbon/dialog.cpp diff --git a/src/mac/carbon/dialog.cpp b/src/mac/carbon/dialog.cpp index ad9de2c969..581c50198f 100644 --- a/src/mac/carbon/dialog.cpp +++ b/src/mac/carbon/dialog.cpp @@ -167,18 +167,8 @@ void wxDialog::DoShowModal() wxModalDialogs.Append(this); - wxWindow *parent = GetParent(); + wxWindow *parent = GetParent(); - // remember where the focus was - wxWindow *winFocus = FindFocus(); - if ( !winFocus ) - { - winFocus = parent; - } - if ( !winFocus ) - { - winFocus = wxTheApp->GetTopWindow(); - } #if TARGET_CARBON BeginAppModalStateForWindow( (WindowRef) MacGetWindowRef()) ; #else @@ -198,13 +188,6 @@ void wxDialog::DoShowModal() // TODO probably reenable the parent window if any s_macIsInModalLoop = formerModal ; #endif - - - // and restore focus - if ( winFocus ) - { - winFocus->SetFocus(); - } }