Fix sending of wxEVT_UPDATE_UI events when wxUSE_STATUSBAR==0
wxFrameBase code unintentionally excluded the function generating wxUpdateUIEvents for the menus from compilation when wxUSE_STATUSBAR was turned off. Move OnMenuOpen() out of #if wxUSE_STATUSBAR section to ensure that it's compiled whenever wxUSE_MENUS==1. Closes #17553.
This commit is contained in:
@@ -152,8 +152,8 @@ public:
|
||||
|
||||
// event handlers
|
||||
#if wxUSE_MENUS
|
||||
#if wxUSE_STATUSBAR
|
||||
void OnMenuOpen(wxMenuEvent& event);
|
||||
#if wxUSE_STATUSBAR
|
||||
void OnMenuClose(wxMenuEvent& event);
|
||||
void OnMenuHighlight(wxMenuEvent& event);
|
||||
#endif // wxUSE_STATUSBAR
|
||||
|
Reference in New Issue
Block a user