]> git.saurik.com Git - wxWidgets.git/commitdiff
setting focus explicitely when using showmodal
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 31 Dec 2004 13:19:18 +0000 (13:19 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 31 Dec 2004 13:19:18 +0000 (13:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dialog.cpp

index 9ec4ef5220b13e90232794cb99f3004a20de2642..cc581e9bf44fdae933614ae1f1bcd88cc919f172 100644 (file)
@@ -163,6 +163,8 @@ void wxDialog::DoShowModal()
 
     wxModalDialogs.Append(this);
 
+    SetFocus() ;
+    
 #if TARGET_CARBON
     BeginAppModalStateForWindow(  (WindowRef) MacGetWindowRef()) ;
 #else