Use the correct event handler in wxMenuBase::UpdateUI().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Jul 2011 12:55:30 +0000 (12:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Jul 2011 12:55:30 +0000 (12:55 +0000)
commit0a63a7b38f2eedd51a7c68fe01ad013467374194
tree576b952b478979cfce6dd3e115c3e941e141e27b
parente96be167e76f2225de04d9c30d66b41a303fcccf
Use the correct event handler in wxMenuBase::UpdateUI().

Use GetWindow() instead of GetInvokingWindow() to send the event to the
associated window for the menus that are part of the menu bar and not only the
popup ones. This was broken since r64127 because GetInvokingWindow() is now
only used for the popup menus.

Closes #13317.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/menucmn.cpp