universal change in the design of the way Route/Track controls are designed and used...
[ardour.git] / gtk2_ardour / time_axis_view.cc
index 6b780a7fc7e899b9ed4fecace543687b568a3134..2ce40844c5dd00fae4cee0ccbd8e52bf4d6f4839 100644 (file)
@@ -763,7 +763,7 @@ TimeAxisView::end_name_edit (int response)
 
                                RouteTimeAxisView* rtav = dynamic_cast<RouteTimeAxisView*>(*i);
 
-                               if (rtav && rtav->route()->record_enabled()) {
+                               if (rtav && (!rtav->is_track() || rtav->track()->rec_enable_control()->get_value())) {
                                        continue;
                                }
 
@@ -794,7 +794,7 @@ TimeAxisView::end_name_edit (int response)
 
                                RouteTimeAxisView* rtav = dynamic_cast<RouteTimeAxisView*>(*i);
 
-                               if (rtav && rtav->route()->record_enabled()) {
+                               if (rtav && (!rtav->is_track() || rtav->track()->rec_enable_control()->get_value())) {
                                        continue;
                                }