]> git.saurik.com Git - wxWidgets.git/commitdiff
Pass focus window to submenu items too (no reason I can think of not to).
authorJulian Smart <julian@anthemion.co.uk>
Sun, 1 Jun 2003 20:40:09 +0000 (20:40 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 1 Jun 2003 20:40:09 +0000 (20:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/framecmn.cpp

index 87911b477f00db9c7ac20443988bf7888a0586d7..cf0fbc201de5c3b715101e231e42b3c21aebb9d5 100644 (file)
@@ -411,7 +411,7 @@ void wxFrameBase::DoMenuUpdates(wxMenu* menu, wxWindow* focusWin)
             }
 
             if (item->GetSubMenu())
-                DoMenuUpdates(item->GetSubMenu(), (wxWindow*) NULL);
+                DoMenuUpdates(item->GetSubMenu(), focusWin);
         }
         node = node->GetNext();
     }