diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 1f2e2f9c93..acdeee8cd4 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1270,7 +1270,6 @@ class Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionLi /* PLAYLISTS */ void remove_playlist (boost::weak_ptr); - void playlist_length_changed (); void track_playlist_changed (boost::weak_ptr); /* NAMED SELECTIONS */ diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index c44db41553..28aebb9387 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -756,12 +756,6 @@ Session::hookup_io () update_route_solo_state (); } -void -Session::playlist_length_changed () -{ - update_session_range_location_marker (); -} - void Session::track_playlist_changed (boost::weak_ptr wp) { @@ -773,7 +767,8 @@ Session::track_playlist_changed (boost::weak_ptr wp) boost::shared_ptr playlist; if ((playlist = track->playlist()) != 0) { - playlist->LengthChanged.connect_same_thread (*this, boost::bind (&Session::playlist_length_changed, this)); + playlist->LengthChanged.connect_same_thread (*this, boost::bind (&Session::update_session_range_location_marker, this)); + playlist->RangesMoved.connect_same_thread (*this, boost::bind (&Session::update_session_range_location_marker, this)); } update_session_range_location_marker ();