summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_group.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-08 17:27:48 +0100
committerRobin Gareus <robin@gareus.org>2015-03-08 19:02:31 +0100
commit1ad42b249bd3e3e4ea76425da9c7c6aeb06b126e (patch)
treece16e50e94d78a5530f704253baa1bb8815d6a9a /gtk2_ardour/port_group.cc
parent8fd67c5a88d94f64077f1e7470b1a985d898919b (diff)
use pretty names in port-matrix
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? ;-)
Diffstat (limited to 'gtk2_ardour/port_group.cc')
-rw-r--r--gtk2_ardour/port_group.cc7
1 files changed, 6 insertions, 1 deletions
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<std::string> 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]);
}