wxMotif compiles (and runs minimal sample) again after wxMenu changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user