]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dialog.cpp
conversion corrections
[wxWidgets.git] / src / mac / carbon / dialog.cpp
index ad9de2c9698be90dd3e843e6fc20ca64a5e46a81..581c50198fca8bc6dfda8f1a0063442071f6dce9 100644 (file)
@@ -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();
-    }
 }