tweak selection code for mixer strip Duplicate func
This commit is contained in:
parent
6f955aa0bd
commit
cf8b9464c5
@ -1586,11 +1586,6 @@ MixerStrip::build_route_ops_menu ()
|
|||||||
items.push_back (MenuElem (_("Remote Control ID..."), sigc::mem_fun (*this, &RouteUI::open_remote_control_id_dialog)));
|
items.push_back (MenuElem (_("Remote Control ID..."), sigc::mem_fun (*this, &RouteUI::open_remote_control_id_dialog)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_route && !_route->is_master()) {
|
|
||||||
items.push_back (SeparatorElem());
|
|
||||||
items.push_back (MenuElem (_("Duplicate..."), sigc::mem_fun (*this, &RouteUI::duplicate_selected_routes)));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_route) {
|
if (_route) {
|
||||||
/* note that this relies on selection being shared across editor and
|
/* note that this relies on selection being shared across editor and
|
||||||
mixer (or global to the backend, in the future), which is the only
|
mixer (or global to the backend, in the future), which is the only
|
||||||
@ -1604,6 +1599,11 @@ MixerStrip::build_route_ops_menu ()
|
|||||||
selection.set (rtav);
|
selection.set (rtav);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!_route->is_master()) {
|
||||||
|
items.push_back (SeparatorElem());
|
||||||
|
items.push_back (MenuElem (_("Duplicate..."), sigc::mem_fun (*this, &RouteUI::duplicate_selected_routes)));
|
||||||
|
}
|
||||||
|
|
||||||
items.push_back (SeparatorElem());
|
items.push_back (SeparatorElem());
|
||||||
items.push_back (MenuElem (_("Remove"), sigc::mem_fun(PublicEditor::instance(), &PublicEditor::remove_tracks)));
|
items.push_back (MenuElem (_("Remove"), sigc::mem_fun(PublicEditor::instance(), &PublicEditor::remove_tracks)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user