Fix for #7207 - Display of object labels does not match with the "View"-menu, if "Complete individual objects" is used

This commit is contained in:
YuSanka 2021-12-02 17:05:39 +01:00
parent a6202c8f16
commit 7272b2b083

View File

@ -319,8 +319,10 @@ static void add_tabs_as_menu(wxMenuBar* bar, MainFrame* main_frame, wxWindow* ba
bar_parent->Bind(wxEVT_MENU_OPEN, [main_frame, bar, is_mainframe_menu](wxMenuEvent& event) {
wxMenu* const menu = event.GetMenu();
if (!menu || menu->GetMenuItemCount() > 0)
if (!menu || menu->GetMenuItemCount() > 0) {
event.Skip(); // it is verry important to next pricessing of the wxEVT_UPDATE_UI by this menu
return;
}
// update tab selection