From 83b3070fe1a52096936305809270b7194d822e19 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 24 May 2024 22:37:29 +0200 Subject: [PATCH] Do not allow to rename rec-arm'ed tracks Previously only the UI prevented this, which can cause issues when renaming is initiated by ctrl surfaces --- libs/ardour/track.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index f294ff299d..74443152b9 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -435,6 +435,11 @@ Track::resync_take_name (std::string n) bool Track::set_name (const string& str) { + if (_record_enable_control->get_value()) { + /* cannot rename rec-armed track - see also Track::resync_take_name */ + return false; + } + if (str.empty ()) { return false; }