View Issue Details

IDProjectCategoryView StatusLast Update
0004896ardourbugspublic2015-09-18 15:19
Reportercolinf Assigned Tocth103  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Target Version3.0 
Summary0004896: [PATCH] Region context sub-menus are disabled when not in object mode
DescriptionWhen the mode is set to anything other than 'Select/Move Objects', although some of the region context sub-menus themselves ('Edit', 'Position', 'Trim', 'Layering', 'Ranges', 'Gain', 'Fades' and 'Duplicate') are active, all of of the items in all sub-menus are disabled.
TagsNo tags attached.

Activities

2012-05-29 15:54

 

sensitise-region-context-menu-all-modes.patch (839 bytes)   
Index: gtk2_ardour/editor_selection.cc
===================================================================
--- gtk2_ardour/editor_selection.cc	(revision 12476)
+++ gtk2_ardour/editor_selection.cc	(working copy)
@@ -1016,20 +1016,7 @@
 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 ());
 

colinf

2012-05-29 15:59

updater   ~0013330

I can't see any reason why Editor::sensitize_the_right_region_actions () needs to care about the current mouse_mode.

Deleting that check as per attached patch makes the region context sub-menus work for me in modes besides object.

cth103

2012-06-08 12:33

administrator   ~0013417

Applied to SVN 12601. Thanks!

colinf

2015-09-18 15:19

updater   ~0017287

Closing old issues reported by me: these have long since been fixed.

Issue History

Date Modified Username Field Change
2012-05-29 13:35 colinf New Issue
2012-05-29 15:54 colinf File Added: sensitise-region-context-menu-all-modes.patch
2012-05-29 15:59 colinf Note Added: 0013330
2012-05-29 16:18 colinf Summary Region context sub-menus are disabled when not in object mode => [PATCH] Region context sub-menus are disabled when not in object mode
2012-05-29 16:41 cth103 cost => 0.00
2012-05-29 16:41 cth103 Target Version => 3.0
2012-06-08 12:33 cth103 Note Added: 0013417
2012-06-08 12:33 cth103 Status new => resolved
2012-06-08 12:33 cth103 Resolution open => fixed
2012-06-08 12:33 cth103 Assigned To => cth103
2015-09-18 15:19 colinf Note Added: 0017287
2015-09-18 15:19 colinf Status resolved => closed