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? ;-)
This commit is contained in:
Robin Gareus 2015-03-08 17:27:48 +01:00
parent 8fd67c5a88
commit 1ad42b249b

View File

@ -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]);
}