From 17d6e724abe49315aae6a24e5117f31c0c8d912f Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Wed, 22 May 2024 20:16:16 -0500 Subject: [PATCH] L: remove Group context-menu items that reference VCA or subgroups --- gtk2_ardour/group_tabs.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk2_ardour/group_tabs.cc b/gtk2_ardour/group_tabs.cc index fc1234f7ba..4b5c98ea00 100644 --- a/gtk2_ardour/group_tabs.cc +++ b/gtk2_ardour/group_tabs.cc @@ -337,6 +337,7 @@ GroupTabs::add_new_from_items (Menu_Helpers::MenuList& items) } items.push_back (MenuElem (_("Create New Group From..."), *new_from)); +#ifndef LIVETRAX new_from = manage (new Menu); { MenuList& f = new_from->items (); @@ -345,6 +346,8 @@ GroupTabs::add_new_from_items (Menu_Helpers::MenuList& items) f.push_back (MenuElem (_("Soloed..."), sigc::bind (sigc::mem_fun (*this, &GroupTabs::new_from_soloed), true))); } items.push_back (MenuElem (_("Create New Group with Master From..."), *new_from)); + +#endif } Gtk::Menu* @@ -375,6 +378,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area) items.push_back (MenuElem (_("Collect Group"), sigc::bind (sigc::mem_fun (*this, &GroupTabs::collect), g))); items.push_back (MenuElem (_("Remove Group"), sigc::bind (sigc::mem_fun (*this, &GroupTabs::remove_group), g))); +#ifndef LIVETRAX items.push_back (SeparatorElem()); if (g->has_control_master()) { @@ -403,6 +407,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area) items.back().set_sensitive (g->can_subgroup (true, PostFader)); } +#endif items.push_back (SeparatorElem()); } @@ -415,6 +420,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area) add_new_from_items (items); } +#ifndef LIVETRAX items.push_back (SeparatorElem()); vca_menu = manage (new Menu); @@ -449,6 +455,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area) } items.push_back (MenuElem (_("Assign Soloed to VCA..."), *vca_menu)); +#endif items.push_back (SeparatorElem()); items.push_back (MenuElem (_("Enable All Groups"), sigc::mem_fun(*this, &GroupTabs::activate_all)));