Use a list of ControlPoints to hold the automation selection,
[ardour.git] / gtk2_ardour / control_point.cc
index bc7301dc1cdeffa3d40d09a4d74a1c6f0b00780f..d869e094aad16ffc3fd52494b35244165d97814c 100644 (file)
@@ -30,6 +30,8 @@ using namespace ARDOUR;
 using namespace PBD;
 using namespace Gnome; // for Canvas
 
+PBD::Signal1<void, ControlPoint *> ControlPoint::CatchDeletion;
+
 ControlPoint::ControlPoint (AutomationLine& al)
        : _line (al)
 {
@@ -82,6 +84,8 @@ ControlPoint::ControlPoint (const ControlPoint& other, bool /*dummy_arg_to_force
 
 ControlPoint::~ControlPoint ()
 {
+       CatchDeletion (this); /* EMIT SIGNAL */
+       
        delete _item;
 }