X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fba2d5e6943c1687509cbcfe2e684a88b5878638..b7b35e5063b8430324ba2fa05d5e6f58a34dd3b9:/src/common/tbarbase.cpp diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index d99e214263..5f4b02fa90 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -554,11 +554,15 @@ void wxToolBarBase::DoToolbarUpdates() while (parent->GetParent()) parent = parent->GetParent(); -#ifdef __WXMSW__ - wxWindow* focusWin = wxFindFocusDescendant(parent); -#else +// This kind of #ifdef is a good way to annoy people. It breaks +// apps, but only on one platform and due to a hack in officially +// platform independent code. It took me hours to fix this. RR. +// +// #ifdef __WXMSW__ +// wxWindow* focusWin = wxFindFocusDescendant(parent); +// #else wxWindow* focusWin = (wxWindow*) NULL; -#endif +// #endif wxEvtHandler* evtHandler = focusWin ? focusWin->GetEventHandler() : GetEventHandler() ;