if (!template_path.empty()) {
if (add_route_dialog->name_template_is_default()) {
- _session->new_route_from_template (count, template_path, string());
+ _session->new_route_from_template (count, PresentationInfo::max_order, template_path, string());
} else {
- _session->new_route_from_template (count, template_path, add_route_dialog->name_template());
+ _session->new_route_from_template (count, PresentationInfo::max_order, template_path, add_route_dialog->name_template());
}
return;
}
Gtkmm2ext::ActionMap global_actions;
+ ARDOUR::PresentationInfo::order_t translate_order (RouteDialogs::InsertAt);
+
protected:
friend class PublicEditor;
bool save_as_progress_update (float fraction, int64_t cnt, int64_t total, Gtk::Label* label, Gtk::ProgressBar* bar);
void save_session_as ();
void rename_session ();
- ARDOUR::PresentationInfo::order_t translate_order (RouteDialogs::InsertAt);
int create_mixer ();
int create_editor ();
#include "ardour/route.h"
#include "ardour/session.h"
+#include "ardour_ui.h"
#include "editor.h"
#include "duplicate_routes_dialog.h"
#include "selection.h"
}
XMLNode& state (rui->route()->get_state());
- RouteList rl = _session->new_route_from_template (cnt, state, std::string(), playlist_action);
+ RouteList rl = _session->new_route_from_template (cnt, ARDOUR_UI::instance()->translate_order (insert_at()), state, std::string(), playlist_action);
/* normally the state node would be added to a parent, and
* ownership would transfer. Because we don't do that here,