more consisten code to set menu item name from VCA name
This commit is contained in:
parent
c0c13d7c45
commit
415c841645
@ -360,7 +360,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area)
|
||||
f.push_back (MenuElem ("New", sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_group_to_master), 0, g, true)));
|
||||
|
||||
for (VCAList::const_iterator v = vcas.begin(); v != vcas.end(); ++v) {
|
||||
f.push_back (MenuElem (string_compose ("VCA %1", (*v)->number()), sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_group_to_master), (*v)->number(), g, true)));
|
||||
f.push_back (MenuElem ((*v)->name().empty() ? string_compose ("VCA %1", (*v)->number()) : (*v)->name(), sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_group_to_master), (*v)->number(), g, true)));
|
||||
}
|
||||
items.push_back (MenuElem (_("Assign Group to Control Master..."), *vca_menu));
|
||||
|
||||
@ -394,7 +394,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area)
|
||||
MenuList& f (vca_menu->items());
|
||||
f.push_back (MenuElem ("New", sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_selection_to_master), 0)));
|
||||
for (VCAList::const_iterator v = vcas.begin(); v != vcas.end(); ++v) {
|
||||
f.push_back (MenuElem (((*v)->name().empty() ? string_compose ("VCA %1", (*v)->number()) : string_compose ("%1",(*v)->name())), sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_selection_to_master), (*v)->number())));
|
||||
f.push_back (MenuElem ((*v)->name().empty() ? string_compose ("VCA %1", (*v)->number()) : (*v)->name(), sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_selection_to_master), (*v)->number())));
|
||||
}
|
||||
}
|
||||
|
||||
@ -405,7 +405,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area)
|
||||
MenuList& f (vca_menu->items());
|
||||
f.push_back (MenuElem ("New", sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_recenabled_to_master), 0)));
|
||||
for (VCAList::const_iterator v = vcas.begin(); v != vcas.end(); ++v) {
|
||||
f.push_back (MenuElem (((*v)->name().empty() ? string_compose ("VCA %1", (*v)->number()) : string_compose ("%1",(*v)->name())), sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_recenabled_to_master), (*v)->number())));
|
||||
f.push_back (MenuElem ((*v)->name().empty() ? string_compose ("VCA %1", (*v)->number()) : (*v)->name(), sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_recenabled_to_master), (*v)->number())));
|
||||
}
|
||||
|
||||
}
|
||||
@ -416,7 +416,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area)
|
||||
MenuList& f (vca_menu->items());
|
||||
f.push_back (MenuElem ("New", sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_soloed_to_master), 0)));
|
||||
for (VCAList::const_iterator v = vcas.begin(); v != vcas.end(); ++v) {
|
||||
f.push_back (MenuElem (((*v)->name().empty() ? string_compose ("VCA %1", (*v)->number()) : string_compose ("%1",(*v)->name())), sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_soloed_to_master), (*v)->number())));
|
||||
f.push_back (MenuElem ((*v)->name().empty() ? string_compose ("VCA %1", (*v)->number()) : (*v)->name(), sigc::bind (sigc::mem_fun (*this, &GroupTabs::assign_soloed_to_master), (*v)->number())));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user