]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/toplevel.cpp
don't check whether the window is shown and enabled in AcceptsFocus() itself
[wxWidgets.git] / src / mac / carbon / toplevel.cpp
index 27d297fac2c8c63c7061a49708bba8aa9839eab4..d29746a500e26513e56857e0124aa9628bb044d3 100644 (file)
@@ -591,7 +591,7 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
             if ( wxevent.GetEventType() == wxEVT_LEFT_DOWN )
             {
                 // ... that is set focus to this window
-                if (currentMouseWindow->AcceptsFocus() && wxWindow::FindFocus()!=currentMouseWindow)
+                if (currentMouseWindow->CanAcceptFocus() && wxWindow::FindFocus()!=currentMouseWindow)
                     currentMouseWindow->SetFocus();
             }