From e36aa9fab73844c1134e68db90b390dbd60d6590 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 2 Oct 2018 23:28:44 +0200 Subject: [PATCH] Include Track-number with stem-exports, if track-numbers are present. --- gtk2_ardour/export_channel_selector.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/export_channel_selector.cc b/gtk2_ardour/export_channel_selector.cc index 9043da3124..c3cf20d41b 100644 --- a/gtk2_ardour/export_channel_selector.cc +++ b/gtk2_ardour/export_channel_selector.cc @@ -739,7 +739,11 @@ TrackExportChannelSelector::update_config() } if (state) { - state->config->set_name (route->name()); + if (_session->config.get_track_name_number() && route->track_number() > 0) { + state->config->set_name (string_compose ("%1-%2", route->track_number(), route->name())); + } else { + state->config->set_name (route->name()); + } } }