13
0

do not disconnect MidiPortSelection-flagged ports from everything when (MIDI track) selection changes

If the user manually connects such a port to something, then it is
up the user to disconnect it too
This commit is contained in:
Paul Davis 2019-03-04 18:23:06 -07:00
parent 2cf57e9257
commit f1dfc6d2a2

View File

@ -756,8 +756,6 @@ Session::rewire_selected_midi (boost::shared_ptr<MidiTrack> new_midi_target)
}
for (vector<string>::const_iterator p = msp.begin(); p != msp.end(); ++p) {
/* disconnect the port from everything */
AudioEngine::instance()->disconnect (*p);
/* connect it to the new target */
new_midi_target->input()->connect (new_midi_target->input()->nth(0), (*p), this);
}