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:
parent
a642448b88
commit
83b3070fe1
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user