13
0

use human readable port-names in Mackie config.

This commit is contained in:
Robin Gareus 2015-11-26 00:30:35 +01:00
parent e1794ae678
commit d6186fba32

View File

@ -869,7 +869,11 @@ MackieControlProtocolGUI::build_midi_port_list (vector<string> const & ports, bo
for (vector<string>::const_iterator p = ports.begin(); p != ports.end(); ++p) {
row = *store->append ();
row[midi_port_columns.full_name] = *p;
row[midi_port_columns.short_name] = (*p).substr ((*p).find (':') + 1);
std::string pn = ARDOUR::AudioEngine::instance()->get_pretty_name_by_name (*p);
if (pn.empty ()) {
pn = (*p).substr ((*p).find (':') + 1);
}
row[midi_port_columns.short_name] = pn;
}
return store;