diff options
author | Robin Gareus <robin@gareus.org> | 2017-07-03 19:56:16 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-03 19:56:16 +0200 |
commit | b87bec3200b39ff75d9f6003a4c1b9402c64442b (patch) | |
tree | 77e797f8834089d15754812f2e1303ea12f4f8a6 /libs | |
parent | c1eee02e1b4b39e98e1d78edb950dc60c47332ee (diff) |
FP8: "Link" mode works with AutomationControl only.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/faderport8/callbacks.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaces/faderport8/callbacks.cc b/libs/surfaces/faderport8/callbacks.cc index ebd6869b8e..d6f12150b4 100644 --- a/libs/surfaces/faderport8/callbacks.cc +++ b/libs/surfaces/faderport8/callbacks.cc @@ -227,7 +227,7 @@ FaderPort8::nofity_focus_control (boost::weak_ptr<PBD::Controllable> c) // TODO consider subscribing to c's DropReferences // (in case the control goes away while it has focus, update the BtnColor) _link_control = c; - if (c.expired ()) { + if (c.expired () || 0 == boost::dynamic_pointer_cast<AutomationControl> (_link_control.lock ())) { _ctrls.button (FP8Controls::BtnLink).set_color (0xff8800ff); _ctrls.button (FP8Controls::BtnLock).set_color (0xff0000ff); } else { |