mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Patch from colinf to sensitize region-related actions even in non-object mode (#4896).
git-svn-id: svn://localhost/ardour2/branches/3.0@12601 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ef213e49a7
commit
e8cb671956
1 changed files with 0 additions and 13 deletions
|
|
@ -1036,19 +1036,6 @@ Editor::sensitize_all_region_actions (bool s)
|
|||
void
|
||||
Editor::sensitize_the_right_region_actions ()
|
||||
{
|
||||
if ((mouse_mode == MouseRange) || (mouse_mode != MouseObject && _join_object_range_state == JOIN_OBJECT_RANGE_RANGE)) {
|
||||
sensitize_all_region_actions (false);
|
||||
if (!selection->time.empty()) {
|
||||
_region_actions->get_action("split-region")->set_sensitive (true);
|
||||
}
|
||||
return;
|
||||
|
||||
} else if (mouse_mode != MouseObject) {
|
||||
sensitize_all_region_actions (false);
|
||||
return;
|
||||
}
|
||||
|
||||
/* We get here if we are in Object mode */
|
||||
|
||||
RegionSelection rs = get_regions_from_selection_and_entered ();
|
||||
sensitize_all_region_actions (!rs.empty ());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue