X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..1fdc16adf72fbd051d1f4ffdbc8d35d00b3e2837:/src/xrc/xh_menu.cpp?ds=sidebyside diff --git a/src/xrc/xh_menu.cpp b/src/xrc/xh_menu.cpp index d1bbb25251..5b13b5be3c 100644 --- a/src/xrc/xh_menu.cpp +++ b/src/xrc/xh_menu.cpp @@ -44,12 +44,18 @@ wxObject *wxMenuXmlHandler::DoCreateResource() wxMenuBar *p_bar = wxDynamicCast(m_parent, wxMenuBar); if (p_bar) + { p_bar->Append(menu, title); + } else { wxMenu *p_menu = wxDynamicCast(m_parent, wxMenu); if (p_menu) + { p_menu->Append(GetID(), title, menu, help); + if (HasParam(wxT("enabled"))) + p_menu->Enable(GetID(), GetBool(wxT("enabled"))); + } } return menu;