From 5a5545febbc1a0464188fd191e9dfd70d3873a6b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 8 Nov 2011 00:31:17 +0000 Subject: [PATCH] Fix naming / numbering of new MIDI tracks (#4453). git-svn-id: svn://localhost/ardour2/branches/3.0@10487 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index f901de87cd..9aed414b1c 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1414,7 +1414,7 @@ Session::count_existing_track_channels (ChanCount& in, ChanCount& out) } /** Caller must not hold process lock - * @param name_template string to use for the start of the name, or "" to use "Midi". + * @param name_template string to use for the start of the name, or "" to use "MIDI". */ list > Session::new_midi_track (TrackMode mode, RouteGroup* route_group, uint32_t how_many, string name_template) @@ -1428,10 +1428,10 @@ Session::new_midi_track (TrackMode mode, RouteGroup* route_group, uint32_t how_m control_id = ntracks() + nbusses(); - bool const use_number = (how_many != 1) || name_template.empty () || name_template == _("Midi"); + bool const use_number = (how_many != 1) || name_template.empty () || name_template == _("MIDI"); while (how_many) { - if (!find_route_name (name_template.empty() ? _("Midi") : name_template, ++track_id, track_name, sizeof(track_name), use_number)) { + if (!find_route_name (name_template.empty() ? _("MIDI") : name_template, ++track_id, track_name, sizeof(track_name), use_number)) { error << "cannot find name for new midi track" << endmsg; goto failed; }