From 7dde6c3b8fa5b819fa59cd15ffc6290ebfefc789 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 3 Apr 2017 10:50:27 +0200 Subject: 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 --- libs/ardour/port_manager.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index a7341c442d..b99337a891 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -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; } -- cgit v1.2.3