X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76db86e7e18d308dec0b0d6e9ab817775a8ab278..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/motif/window.cpp?ds=sidebyside diff --git a/src/motif/window.cpp b/src/motif/window.cpp index ac82518a24..3dd230e4e3 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1657,7 +1657,7 @@ bool wxWindow::ProcessAccelerator(wxKeyEvent& event) // Try for a menu command if (frame->GetMenuBar()) { - wxMenuItem* item = frame->GetMenuBar()->FindItemForId(entry->GetCommand()); + wxMenuItem* item = frame->GetMenuBar()->FindItem(entry->GetCommand()); if (item) { wxCommandEvent commandEvent(wxEVT_COMMAND_MENU_SELECTED, entry->GetCommand());