Fix implicit Vkeybd MIDI meta-data
This commit is contained in:
parent
7b4aaeb5cd
commit
b9966cf69d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user