13
0

when disconnecting a MIDI port for follows-selection, get ALL connections

without the 3rd argument, we only get information about ports that we own.
This commit is contained in:
Paul Davis 2024-06-14 22:04:52 -06:00
parent cf58a157e3
commit 0847dc8a37

View File

@ -744,7 +744,8 @@ Session::disconnect_port_for_rewire (std::string const& port) const
bool keep_ctrl = mpf & MidiPortControl;
vector<string> port_connections;
AudioEngine::instance()->get_connections (port, port_connections);
AudioEngine::instance()->get_connections (port, port_connections, false);
for (vector<string>::iterator i = port_connections.begin(); i != port_connections.end(); ++i) {
/* test if (*i) is a control-surface input port */