From 1ad42b249bd3e3e4ea76425da9c7c6aeb06b126e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 8 Mar 2015 17:27:48 +0100 Subject: [PATCH] use pretty names in port-matrix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit maybe this should be an option? So far it’s the matrix only.. gotta start somewhere. PS. No, this is not a new feature. Ardour not doing this is a major bug that severely reduces usability: system:midi_capture_47 WTF? ;-) --- gtk2_ardour/port_group.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/port_group.cc b/gtk2_ardour/port_group.cc index cafcaad51f..448a8d3cf5 100644 --- a/gtk2_ardour/port_group.cc +++ b/gtk2_ardour/port_group.cc @@ -610,7 +610,12 @@ PortGroupList::make_bundle_from_ports (std::vector const & p, ARDOU } for (uint32_t j = 0; j < p.size(); ++j) { - b->add_channel (p[j].substr (pre.length()), type); + std::string n = p[j].substr (pre.length()); + std::string pn = AudioEngine::instance()->get_pretty_name_by_name (p[j]); + if (!pn.empty()) { + n = pn; + } + b->add_channel (n, type); b->set_port (j, p[j]); }