13
0

Fix non-update of session range marker in some cases.

git-svn-id: svn://localhost/ardour2/branches/3.0@8120 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-11-28 20:32:58 +00:00
parent ab61e8de4a
commit ad4e0cd2d1
2 changed files with 2 additions and 8 deletions

View File

@ -1270,7 +1270,6 @@ class Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionLi
/* PLAYLISTS */
void remove_playlist (boost::weak_ptr<Playlist>);
void playlist_length_changed ();
void track_playlist_changed (boost::weak_ptr<Track>);
/* NAMED SELECTIONS */

View File

@ -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<Track> wp)
{
@ -773,7 +767,8 @@ Session::track_playlist_changed (boost::weak_ptr<Track> wp)
boost::shared_ptr<Playlist> 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 ();