try using sensitize_the_right_region_actions() when region selection changes, rather...
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 15 Nov 2011 02:14:45 +0000 (02:14 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 15 Nov 2011 02:14:45 +0000 (02:14 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10608 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_selection.cc

index c598116bade542f3d6acf01f20d831cd7d62062e..b362d15f5301f06b6d8091f397f3c707474a428d 100644 (file)
@@ -1185,12 +1185,7 @@ Editor::region_selection_changed ()
        _regions->block_change_connection (false);
        editor_regions_selection_changed_connection.block(false);
 
-       if (!_all_region_actions_sensitized) {
-               /* This selection change might have changed what region actions
-                  are allowed, so sensitize them all in case a key is pressed.
-               */
-               sensitize_all_region_actions (true);
-       }
+       sensitize_the_right_region_actions ();
 }
 
 void