13
0

do not save or restore MIDI port "pretty-names" from XML

This is a job for the backend, which should really get the names from the hardware/driver
and make a mapping between a device UUID and the name. Neither the ALSA, JACK or ASIO
backends can do this at present
This commit is contained in:
Paul Davis 2017-04-03 10:50:27 +02:00
parent 54bab5153f
commit 7dde6c3b8f

View File

@ -1069,7 +1069,6 @@ PortManager::save_midi_port_info ()
for (MidiPortInfo::iterator i = midi_port_info.begin(); i != midi_port_info.end(); ++i) {
XMLNode* node = new XMLNode (X_("port"));
node->add_property (X_("name"), i->first);
node->add_property (X_("pretty-name"), i->second.pretty_name);
node->add_property (X_("input"), i->second.input ? X_("yes") : X_("no"));
node->add_property (X_("properties"), enum_2_string (i->second.properties));
root->add_child_nocopy (*node);
@ -1113,11 +1112,6 @@ PortManager::load_midi_port_info ()
name = prop->value ();
if ((prop = (*i)->property (X_("pretty-name"))) == 0) {
continue;
}
mpi.pretty_name = prop->value();
if ((prop = (*i)->property (X_("input"))) == 0) {
continue;
}