summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/faderport8/callbacks.cc2
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 {