Reset accelerator table after removing last accelerator in wxMSW wxMenuBar.

We didn't update the accelerator table if no more accelerators were left in it
but we still need to do it to stop handling the previously active accelerators.

Closes #15078.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2013-03-02 12:11:53 +00:00
parent f29b59b781
commit 23c37c2c4e

View File

@ -1534,6 +1534,10 @@ void wxMenuBar::RebuildAccelTable()
delete [] accelEntries;
}
else // No (more) accelerators.
{
SetAcceleratorTable(wxAcceleratorTable());
}
}
#endif // wxUSE_ACCEL