From 40a8ed88084eb36922dbdc530db75a323843863a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 31 Jan 2012 21:56:39 +0000 Subject: Update summary on switching playlists (#4659). git-svn-id: svn://localhost/ardour2/branches/3.0@11405 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_summary.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/editor_summary.cc') diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index 57a08caf88..623faaed5f 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -75,8 +75,8 @@ EditorSummary::set_session (Session* s) */ if (_session) { - _session->StartTimeChanged.connect (_session_connections, invalidator (*this), boost::bind (&EditorSummary::set_dirty, this), gui_context()); - _session->EndTimeChanged.connect (_session_connections, invalidator (*this), boost::bind (&EditorSummary::set_dirty, this), gui_context()); + _session->StartTimeChanged.connect (_session_connections, invalidator (*this), boost::bind (&CairoWidget::set_dirty, this), gui_context()); + _session->EndTimeChanged.connect (_session_connections, invalidator (*this), boost::bind (&CairoWidget::set_dirty, this), gui_context()); } } @@ -926,9 +926,13 @@ EditorSummary::editor_y_to_summary (double y) const void EditorSummary::routes_added (list const & r) { - /* Connect to gui_changed() on the routes so that we know when their colour has changed */ for (list::const_iterator i = r.begin(); i != r.end(); ++i) { + /* Connect to gui_changed() on the route so that we know when their colour has changed */ (*i)->route()->gui_changed.connect (*this, invalidator (*this), ui_bind (&EditorSummary::route_gui_changed, this, _1), gui_context ()); + boost::shared_ptr tr = boost::dynamic_pointer_cast ((*i)->route ()); + if (tr) { + tr->PlaylistChanged.connect (*this, invalidator (*this), ui_bind (&CairoWidget::set_dirty, this), gui_context ()); + } } set_dirty (); -- cgit v1.2.3