From 333e3c60193b1f5832a9bffb94da6fbb4c7c1085 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 13 Mar 2017 18:44:37 +0100 Subject: Add track/bus rename safeguards to the backend (handy for scripting) --- libs/ardour/track.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libs/ardour/track.cc') 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; } -- cgit v1.2.3