mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 06:05:43 +01:00
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:
parent
1d5be40801
commit
43bed39d30
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue