fix from 2.X for automation line clear command using the wrong object in the memento...
[ardour.git] / gtk2_ardour / ghostregion.cc
index c7a10636ffcb89ade62d407a43f5882d83c29ebd..5f07f1388f26baa9fed8ef4e07f540350e4664d2 100644 (file)
@@ -34,7 +34,7 @@ using namespace Editing;
 using namespace ArdourCanvas;
 using namespace ARDOUR;
 
-boost::signals2::signal<void(GhostRegion*)> GhostRegion::GoingAway;
+PBD::Signal1<void,GhostRegion*> GhostRegion::CatchDeletion;
 
 GhostRegion::GhostRegion (ArdourCanvas::Group* parent, TimeAxisView& tv, TimeAxisView& source_tv, double initial_pos)
        : trackview (tv)
@@ -63,7 +63,7 @@ GhostRegion::GhostRegion (ArdourCanvas::Group* parent, TimeAxisView& tv, TimeAxi
 
 GhostRegion::~GhostRegion ()
 {
-       GoingAway (this);
+       CatchDeletion (this);
        delete base_rect;
        delete group;
 }