From b87bec3200b39ff75d9f6003a4c1b9402c64442b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 3 Jul 2017 19:56:16 +0200 Subject: FP8: "Link" mode works with AutomationControl only. --- libs/surfaces/faderport8/callbacks.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') 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 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 (_link_control.lock ())) { _ctrls.button (FP8Controls::BtnLink).set_color (0xff8800ff); _ctrls.button (FP8Controls::BtnLock).set_color (0xff0000ff); } else { -- cgit v1.2.3