13
0

Fix implicit Vkeybd MIDI meta-data

This commit is contained in:
Robin Gareus 2021-01-22 05:19:47 +01:00
parent 7b4aaeb5cd
commit b9966cf69d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -494,6 +494,7 @@ PortManager::register_port (DataType dtype, const string& portname, bool input,
portname, input)); portname, input));
newport.reset (new AsyncMIDIPort (portname, PortFlags ((input ? IsInput : IsOutput) | flags)), newport.reset (new AsyncMIDIPort (portname, PortFlags ((input ? IsInput : IsOutput) | flags)),
PortDeleter()); PortDeleter());
_midi_info_dirty = true;
} else { } else {
DEBUG_TRACE (DEBUG::Ports, string_compose ("registering MIDI port %1, input %2\n", DEBUG_TRACE (DEBUG::Ports, string_compose ("registering MIDI port %1, input %2\n",
portname, input)); portname, input));
@ -1466,6 +1467,10 @@ PortManager::save_port_info ()
{ {
Glib::Threads::Mutex::Lock lm (_port_info_mutex); Glib::Threads::Mutex::Lock lm (_port_info_mutex);
for (PortInfo::const_iterator i = _port_info.begin (); i != _port_info.end (); ++i) { for (PortInfo::const_iterator i = _port_info.begin (); i != _port_info.end (); ++i) {
if (port_is_virtual_piano (i->first.port_name)) {
continue;
}
XMLNode& node = i->first.state (); XMLNode& node = i->first.state ();
node.set_property ("pretty-name", i->second.pretty_name); node.set_property ("pretty-name", i->second.pretty_name);
node.set_property ("properties", i->second.properties); node.set_property ("properties", i->second.properties);