when setting a redirect box to display a given route's redirects, always unset the...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 8 Oct 2009 20:43:12 +0000 (20:43 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 8 Oct 2009 20:43:12 +0000 (20:43 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5761 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/redirect_box.cc

index 03b3fd73558b63380b0502edc10de4a82f0e77e8..4bacd85e17949faab6e41332bdbacd1075e3fcab 100644 (file)
@@ -152,8 +152,14 @@ RedirectBox::~RedirectBox ()
 void
 RedirectBox::set_route (boost::shared_ptr<Route> r)
 {
+
        connections.clear ();
 
+        /* since we're dealing with a new route, any existing limit on redisplay
+          must be irrelevant.
+       */
+
+       no_redirect_redisplay = false;
        _route = r;
 
        connections.push_back (_route->redirects_changed.connect (mem_fun(*this, &RedirectBox::redisplay_redirects)));