diff options
author | Carl Hetherington <carl@carlh.net> | 2012-01-30 18:09:54 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-01-30 18:09:54 +0000 |
commit | 35a4144e457b34a8a3cbeaa1c39c9666b21750bc (patch) | |
tree | cc9e75b178176956f90d462f35c597c8e490861d /gtk2_ardour/processor_box.cc | |
parent | 44dcf6945b2d3535bca96a32cf8d6e1e2ef4a9ae (diff) |
Add aux sends at the position that the menu was opened, rather than always pre-fader (#4660).
git-svn-id: svn://localhost/ardour2/branches/3.0@11387 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 9ee94c1793..beea3c8211 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -942,10 +942,8 @@ ProcessorBox::show_processor_menu (int arg) processor_display.get_pointer (x, y); _placement = processor_display.add_placeholder (y); - if (_visible_prefader_processors == 0) { - if (_placement == 1) { - _placement = 0; - } + if (_visible_prefader_processors == 0 && _placement > 0) { + --_placement; } } @@ -1312,10 +1310,7 @@ ProcessorBox::choose_aux (boost::weak_ptr<Route> wr) return; } - boost::shared_ptr<RouteList> rlist (new RouteList); - rlist->push_back (_route); - - _session->add_internal_sends (target, PreFader, rlist); + _session->add_internal_send (target, _placement, _route); } void |