From b592ce3e442a92a2a29468c94f7738742bd71bb0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 16 Sep 2014 21:31:19 -0400 Subject: [PATCH] Locations should listen to location changed signals, and emit its own changed() signal --- libs/ardour/location.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index 3fcbbd600b..aab2b4ea85 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -44,6 +44,10 @@ using namespace ARDOUR; using namespace PBD; PBD::Signal0 Location::scene_changed; +PBD::Signal1 Location::name_changed; +PBD::Signal1 Location::end_changed; +PBD::Signal1 Location::start_changed; +PBD::Signal1 Location::changed; Location::Location (Session& s) : SessionHandleRef (s) @@ -621,6 +625,10 @@ Locations::Locations (Session& s) : SessionHandleRef (s) { current_location = 0; + + Location::changed.connect_same_thread (*this, boost::bind (&Locations::location_changed, this, _1)); + Location::start_changed.connect_same_thread (*this, boost::bind (&Locations::location_changed, this, _1)); + Location::end_changed.connect_same_thread (*this, boost::bind (&Locations::location_changed, this, _1)); } Locations::~Locations ()