diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-13 18:44:37 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-13 18:44:37 +0100 |
commit | 333e3c60193b1f5832a9bffb94da6fbb4c7c1085 (patch) | |
tree | 0920135cd774bbf0c98612afa88354c5aa9a74bd /libs/ardour/track.cc | |
parent | 837ad93e7c2d12db6e184b5db76a6302a421067f (diff) |
Add track/bus rename safeguards to the backend (handy for scripting)
Diffstat (limited to 'libs/ardour/track.cc')
-rw-r--r-- | libs/ardour/track.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index c84d9a1868..0fcf831f46 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -294,8 +294,12 @@ Track::set_name (const string& str) { bool ret; - if (_record_enable_control->get_value() && _session.actively_recording()) { - /* this messes things up if done while recording */ + if (str.empty ()) { + return false; + } + + if (_record_enable_control->get_value()) { + /* when re-arm'ed the file (named after the track) is already ready to rolll */ return false; } |