13
0

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
This commit is contained in:
Robin Gareus 2024-05-24 22:37:29 +02:00
parent a642448b88
commit 83b3070fe1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -435,6 +435,11 @@ Track::resync_take_name (std::string n)
bool bool
Track::set_name (const string& str) 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 ()) { if (str.empty ()) {
return false; return false;
} }