mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
use human readable port-names in Mackie config.
This commit is contained in:
parent
e1794ae678
commit
d6186fba32
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue