mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
RecorderUI: keep track of playlist changes
This fixes a bug that the recorder display does not correctly redraw when using a new or different playlist.
This commit is contained in:
parent
d60a6a890d
commit
6027e49e58
2 changed files with 11 additions and 1 deletions
|
|
@ -672,7 +672,7 @@ TrackRecordAxis::TrackSummary::TrackSummary (boost::shared_ptr<ARDOUR::Route> r)
|
|||
assert (_track);
|
||||
|
||||
_track->PlaylistChanged.connect (_connections, invalidator (*this), boost::bind (&TrackSummary::playlist_changed, this), gui_context ());
|
||||
_track->playlist()->ContentsChanged.connect (_connections, invalidator (*this), boost::bind (&TrackSummary::playlist_changed, this), gui_context ());
|
||||
_track->playlist()->ContentsChanged.connect (_playlist_connections, invalidator (*this), boost::bind (&TrackSummary::playlist_contents_changed, this), gui_context ());
|
||||
_track->presentation_info().PropertyChanged.connect (_connections, invalidator (*this), boost::bind (&TrackSummary::property_changed, this, _1), gui_context ());
|
||||
|
||||
_track->rec_enable_control()->Changed.connect (_connections, invalidator (*this), boost::bind (&TrackSummary::maybe_setup_rec_box, this), gui_context());
|
||||
|
|
@ -831,6 +831,14 @@ TrackRecordAxis::TrackSummary::playhead_position_changed (samplepos_t p)
|
|||
|
||||
void
|
||||
TrackRecordAxis::TrackSummary::playlist_changed ()
|
||||
{
|
||||
_playlist_connections.disconnect ();
|
||||
_track->playlist()->ContentsChanged.connect (_playlist_connections, invalidator (*this), boost::bind (&TrackSummary::playlist_contents_changed, this), gui_context ());
|
||||
set_dirty ();
|
||||
}
|
||||
|
||||
void
|
||||
TrackRecordAxis::TrackSummary::playlist_contents_changed ()
|
||||
{
|
||||
set_dirty ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue