mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Disabled routes do not have a label that can be edited
This commit is contained in:
parent
0708cdb6b4
commit
c398d85f0b
1 changed files with 6 additions and 2 deletions
|
|
@ -2293,8 +2293,12 @@ RouteTimeAxisView::reset_processor_automation_curves ()
|
||||||
bool
|
bool
|
||||||
RouteTimeAxisView::can_edit_name () const
|
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));
|
boost::shared_ptr<Track> trk (boost::dynamic_pointer_cast<Track> (_route));
|
||||||
if (!trk) {
|
if (!trk) {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue