From 43bed39d302b0781736809af3548dced0189cfd7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 20 Feb 2020 19:13:58 +0100 Subject: [PATCH] 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. --- libs/surfaces/generic_midi/midicontrollable.cc | 1 + 1 file changed, 1 insertion(+) 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 c = _surface->lookup_controllable (_current_uri); if (!c) { + set_controllable (boost::shared_ptr()); return -1; }