VKeybd: Set default MIDI port flags
authorRobin Gareus <robin@gareus.org>
Thu, 5 Dec 2019 22:40:29 +0000 (23:40 +0100)
committerRobin Gareus <robin@gareus.org>
Thu, 5 Dec 2019 22:40:29 +0000 (23:40 +0100)
libs/ardour/port_manager.cc

index 8be1f7f7e949538b337b84c9a4a239face0fe2bf..d423ddbd741611634e8fc4c1d385af2f98d9d551 100644 (file)
@@ -1281,6 +1281,8 @@ PortManager::fill_midi_port_info_locked ()
 
                        if (port_is_control_only (*p)) {
                                flags = MidiPortControl;
+                       } else if (*p == _backend->my_name() + ":" + _("Virtual Keyboard")) {
+                               flags = MidiPortFlags(MidiPortSelection | MidiPortMusic);
                        }
 
                        MidiPortInformation mpi (_backend->name(), *p, true, flags, true);