13
0

tweak selection code for mixer strip Duplicate func

This commit is contained in:
Ben Loftis 2015-11-17 17:34:33 -06:00
parent 6f955aa0bd
commit cf8b9464c5

View File

@ -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)));
} }