mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Use set_editable() rather than set_sensitive() to lock the clocks of locked markers, so that middle-click to locate to the marker still works even when locked (#4939).
git-svn-id: svn://localhost/ardour2/branches/3.0@12777 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
6b9d82be5c
commit
b2ad7c087b
2 changed files with 8 additions and 8 deletions
|
|
@ -322,7 +322,7 @@ LocationEditRow::set_location (Location *loc)
|
|||
length_clock.hide();
|
||||
}
|
||||
|
||||
set_clock_sensitivity ();
|
||||
set_clock_editable_status ();
|
||||
|
||||
--i_am_the_modifier;
|
||||
|
||||
|
|
@ -632,7 +632,7 @@ LocationEditRow::location_changed (ARDOUR::Location*)
|
|||
end_clock.set (location->end());
|
||||
length_clock.set (location->length());
|
||||
|
||||
set_clock_sensitivity ();
|
||||
set_clock_editable_status ();
|
||||
|
||||
i_am_the_modifier--;
|
||||
|
||||
|
|
@ -665,7 +665,7 @@ LocationEditRow::lock_changed (ARDOUR::Location*)
|
|||
|
||||
lock_check_button.set_active (location->locked());
|
||||
|
||||
set_clock_sensitivity ();
|
||||
set_clock_editable_status ();
|
||||
|
||||
i_am_the_modifier--;
|
||||
}
|
||||
|
|
@ -691,11 +691,11 @@ LocationEditRow::focus_name()
|
|||
}
|
||||
|
||||
void
|
||||
LocationEditRow::set_clock_sensitivity ()
|
||||
LocationEditRow::set_clock_editable_status ()
|
||||
{
|
||||
start_clock.set_sensitive (!location->locked());
|
||||
end_clock.set_sensitive (!location->locked());
|
||||
length_clock.set_sensitive (!location->locked());
|
||||
start_clock.set_editable (!location->locked());
|
||||
end_clock.set_editable (!location->locked());
|
||||
length_clock.set_editable (!location->locked());
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue