fix logic of RouteUI::set_color_from_route()
[ardour.git] / gtk2_ardour / route_ui.cc
index 71ba34069eb758947820d0b06a34baa012803772..858fbcad14f333fc6089a83ee5729c0ff3cdd65a 100644 (file)
@@ -1599,7 +1599,11 @@ RouteUI::route_state_id () const
 int
 RouteUI::set_color_from_route ()
 {
-       return 0;
+       if (_route->presentation_info().color_set()) {
+               return 0; /* nothing to do */
+       }
+
+       return 1; /* pick a color */
 }
 
 /** @return true if this name should be used for the route, otherwise false */