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:
parent
a6202c8f16
commit
7272b2b083
@ -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) {
|
bar_parent->Bind(wxEVT_MENU_OPEN, [main_frame, bar, is_mainframe_menu](wxMenuEvent& event) {
|
||||||
wxMenu* const menu = event.GetMenu();
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// update tab selection
|
// update tab selection
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user