From 0c035778e162bd5934fc0070e43a26ffb4c8825a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 5 May 2017 12:31:21 +0100 Subject: libardour now has CoreSelection object to manage selection status of Stripables and AutomationControls --- libs/ardour/automation_control.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/ardour/automation_control.cc') diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index 84c606cfd8..ffff120a23 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -30,6 +30,7 @@ #include "ardour/control_group.h" #include "ardour/event_type_map.h" #include "ardour/session.h" +#include "ardour/selection.h" #include "pbd/i18n.h" @@ -68,6 +69,7 @@ AutomationControl::AutomationControl(ARDOUR::Session& s AutomationControl::~AutomationControl () { + _session.selection().remove_control_by_id (id()); DropReferences (); /* EMIT SIGNAL */ } -- cgit v1.2.3