summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/route_ui.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc
index 71ba34069e..858fbcad14 100644
--- a/gtk2_ardour/route_ui.cc
+++ b/gtk2_ardour/route_ui.cc
@@ -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 */