13
0

Disabled routes do not have a label that can be edited

This commit is contained in:
Robin Gareus 2020-07-10 17:47:10 +02:00
parent 0708cdb6b4
commit c398d85f0b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2293,8 +2293,12 @@ RouteTimeAxisView::reset_processor_automation_curves ()
bool
RouteTimeAxisView::can_edit_name () const
{
/* we do not allow track name changes if it is record enabled
*/
/* inactive routes do not have an editable label */
if (_route && !_route->active()) {
return false;
}
/* we do not allow track name changes if it is record enabled */
boost::shared_ptr<Track> trk (boost::dynamic_pointer_cast<Track> (_route));
if (!trk) {
return true;