From: Paul Davis Date: Mon, 22 Aug 2016 13:44:48 +0000 (-0400) Subject: use user-specified insertion point when adding new tracks/busses with a template X-Git-Tag: 5.1~33 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=289ad1f3c7745afad5c097a1f0b2586f96392e82 use user-specified insertion point when adding new tracks/busses with a template --- diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index d47723260e..f28913bab3 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -4063,9 +4063,9 @@ ARDOUR_UI::add_route_dialog_finished (int r) if (!template_path.empty()) { if (add_route_dialog->name_template_is_default()) { - _session->new_route_from_template (count, PresentationInfo::max_order, template_path, string()); + _session->new_route_from_template (count, order, template_path, string()); } else { - _session->new_route_from_template (count, PresentationInfo::max_order, template_path, add_route_dialog->name_template()); + _session->new_route_from_template (count, order, template_path, add_route_dialog->name_template()); } return; }