X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f03ec224dcde69ee0b30f5baecc4b5e5466b02c1..0dfef5a8124ac0f1bb2aed6ef5ddfa833e8e2c6e:/samples/menu/menu.cpp diff --git a/samples/menu/menu.cpp b/samples/menu/menu.cpp index 26cb1baeac..1b098b2f39 100644 --- a/samples/menu/menu.cpp +++ b/samples/menu/menu.cpp @@ -460,6 +460,8 @@ void MyFrame::OnCheckMenuItem(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnUpdateCheckMenuItemUI(wxUpdateUIEvent& event) { + wxLogNull nolog; + wxMenuItem *item = GetLastMenuItem(); event.Enable(item && item->IsCheckable());