diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index 533e0bbf4c..f3c4260ac7 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -565,20 +565,9 @@ bool wxWindowMac::SetBackgroundColour(const wxColour& col ) return true ; } -static bool wxIsWindowOrParentDisabled(wxWindow* w) -{ - while (w && !w->IsTopLevel()) - { - if (!w->IsEnabled()) - return true; - w = w->GetParent(); - } - return false; -} - void wxWindowMac::SetFocus() { - if (wxIsWindowOrParentDisabled((wxWindow*) this)) + if ( !IsEnabled() ) return; wxWindow* former = FindFocus() ;