Remove redundant port-owner check
Ports owned by Ardour are already filtered out by PortManager::get_known_midi_ports() -> PortManager::fill_midi_port_info_locked() This change is in preparation for allowing to expose Ardour's "Virtual MIDI Keyboard" keyboard (which is owned by Ardour).
This commit is contained in:
parent
f0d2327af0
commit
148a9682be
@ -2006,10 +2006,6 @@ MidiPortOptions::refill_midi_ports (bool for_input, Gtk::TreeView& view)
|
|||||||
|
|
||||||
for (vector<string>::const_iterator s = ports.begin(); s != ports.end(); ++s) {
|
for (vector<string>::const_iterator s = ports.begin(); s != ports.end(); ++s) {
|
||||||
|
|
||||||
if (AudioEngine::instance()->port_is_mine (*s)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
PortManager::MidiPortInformation mpi (AudioEngine::instance()->midi_port_information (*s));
|
PortManager::MidiPortInformation mpi (AudioEngine::instance()->midi_port_information (*s));
|
||||||
|
|
||||||
if (!mpi.exists) {
|
if (!mpi.exists) {
|
||||||
|
Loading…
Reference in New Issue
Block a user