X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e63fdcd600e2eb717a19f9fa2895e9256e83c890..c48269b9f7afca9c8e7076e0ceb06b933b2e88b8:/src/common/framecmn.cpp?ds=sidebyside diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index b69ca51332..3cc2dff527 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -427,8 +427,11 @@ void wxFrameBase::DoMenuUpdates() { wxMenuBar* bar = GetMenuBar(); +#ifdef __WXMSW__ wxWindow* focusWin = wxFindFocusDescendant((wxWindow*) this); - +#else + wxWindow* focusWin = (wxWindow*) NULL; +#endif if ( bar != NULL ) { int nCount = bar->GetMenuCount();