From 7272b2b083448859ec63798326f7b6feead0d071 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 2 Dec 2021 17:05:39 +0100 Subject: [PATCH] Fix for #7207 - Display of object labels does not match with the "View"-menu, if "Complete individual objects" is used --- src/slic3r/GUI/MainFrame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 7c3c99dbc..cca14e570 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -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