Make route list tab LEDs follow record state correctly.
[ardour.git] / gtk2_ardour / route_processor_selection.cc
index 102cd724ddf6f5b8754b9d7090b7fc6ff9a2397a..b3a6620f6bf1bca3f56fea40f7c90d7857ae642b 100644 (file)
@@ -69,6 +69,7 @@ void
 RouteRedirectSelection::clear_routes ()
 {
        routes.clear ();
+       drop_connections ();
        RoutesChanged ();
 }
 
@@ -93,7 +94,7 @@ RouteRedirectSelection::add (boost::shared_ptr<Route> r)
 {
        if (find (routes.begin(), routes.end(), r) == routes.end()) {
                routes.push_back (r);
-               r->GoingAway.connect (boost::bind (&RouteRedirectSelection::removed, this, boost::weak_ptr<Route>(r)));
+               r->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&RouteRedirectSelection::removed, this, boost::weak_ptr<Route>(r)), gui_context());
                RoutesChanged();
        }
 }