diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2015-11-17 16:55:11 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2015-11-17 16:55:11 -0600 |
commit | 6f955aa0bd70c6defc259eebb69a0590daf93cb5 (patch) | |
tree | 53f012eb87843af8c3a0286c97a5c5bcd9a848f3 /gtk2_ardour/mixer_strip.cc | |
parent | a95f8a8648b2a80d7f2b1208c38a4f9e66e70d85 (diff) |
add Duplicate action to track and mixer context menus
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index f3ae79dc1f..8471699337 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -1586,6 +1586,11 @@ MixerStrip::build_route_ops_menu () 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) { /* note that this relies on selection being shared across editor and mixer (or global to the backend, in the future), which is the only @@ -1599,8 +1604,8 @@ MixerStrip::build_route_ops_menu () selection.set (rtav); } - items.push_front (SeparatorElem()); - items.push_front (MenuElem (_("Remove"), sigc::mem_fun(PublicEditor::instance(), &PublicEditor::remove_tracks))); + items.push_back (SeparatorElem()); + items.push_back (MenuElem (_("Remove"), sigc::mem_fun(PublicEditor::instance(), &PublicEditor::remove_tracks))); } } } |