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:
parent
ab61e8de4a
commit
ad4e0cd2d1
@ -1270,7 +1270,6 @@ class Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionLi
|
|||||||
/* PLAYLISTS */
|
/* PLAYLISTS */
|
||||||
|
|
||||||
void remove_playlist (boost::weak_ptr<Playlist>);
|
void remove_playlist (boost::weak_ptr<Playlist>);
|
||||||
void playlist_length_changed ();
|
|
||||||
void track_playlist_changed (boost::weak_ptr<Track>);
|
void track_playlist_changed (boost::weak_ptr<Track>);
|
||||||
|
|
||||||
/* NAMED SELECTIONS */
|
/* NAMED SELECTIONS */
|
||||||
|
@ -756,12 +756,6 @@ Session::hookup_io ()
|
|||||||
update_route_solo_state ();
|
update_route_solo_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
Session::playlist_length_changed ()
|
|
||||||
{
|
|
||||||
update_session_range_location_marker ();
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Session::track_playlist_changed (boost::weak_ptr<Track> wp)
|
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;
|
boost::shared_ptr<Playlist> playlist;
|
||||||
|
|
||||||
if ((playlist = track->playlist()) != 0) {
|
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 ();
|
update_session_range_location_marker ();
|
||||||
|
Loading…
Reference in New Issue
Block a user