From c398d85f0b2e6d8388629f6cd6e6675db29f0add Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 10 Jul 2020 17:47:10 +0200 Subject: [PATCH] Disabled routes do not have a label that can be edited --- gtk2_ardour/route_time_axis.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 45043c65eb..dcfe377727 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -2293,8 +2293,12 @@ RouteTimeAxisView::reset_processor_automation_curves () bool RouteTimeAxisView::can_edit_name () const { - /* we do not allow track name changes if it is record enabled - */ + /* inactive routes do not have an editable label */ + if (_route && !_route->active()) { + return false; + } + + /* we do not allow track name changes if it is record enabled */ boost::shared_ptr trk (boost::dynamic_pointer_cast (_route)); if (!trk) { return true;