Reset MIDI-control when a given ctrl is not available

This fixes an issue with "/route/eq/freq/0 S1":
When a newly select strip that does not have a EQ
(e.g. mixbus or master), the control from the previously
selected strip is used.  -- Reported by tavasti on IRC.
This commit is contained in:
Robin Gareus 2020-02-20 19:13:58 +01:00
parent 1d5be40801
commit 43bed39d30
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -270,6 +270,7 @@ MIDIControllable::lookup_controllable()
boost::shared_ptr<Controllable> c = _surface->lookup_controllable (_current_uri);
if (!c) {
set_controllable (boost::shared_ptr<PBD::Controllable>());
return -1;
}