L: remove Group context-menu items that reference VCA or subgroups
This commit is contained in:
parent
86c9118a0f
commit
17d6e724ab
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user