diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-20 19:13:58 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-20 19:13:58 +0100 |
commit | 43bed39d302b0781736809af3548dced0189cfd7 (patch) | |
tree | 6d24a7ef90329bb3bcf569d7d9f365219fc0e777 /libs | |
parent | 1d5be408019c5f714fd53ca3fee2907091d3845f (diff) |
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.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/generic_midi/midicontrollable.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/surfaces/generic_midi/midicontrollable.cc b/libs/surfaces/generic_midi/midicontrollable.cc index 916c5a8a24..5a75afc89a 100644 --- a/libs/surfaces/generic_midi/midicontrollable.cc +++ b/libs/surfaces/generic_midi/midicontrollable.cc @@ -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; } |