X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f03ec224dcde69ee0b30f5baecc4b5e5466b02c1..8480b297e70a29b785421ded6db22ae024e35038:/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());