diff options
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 3ec11ea410..38ee5dff3c 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -989,6 +989,7 @@ Editor::sensitize_the_right_region_actions () bool have_envelope_active = false; bool have_envelope_inactive = false; bool have_non_unity_scale_amplitude = false; + bool have_compound_regions = false; for (list<RegionView*>::const_iterator i = rs.begin(); i != rs.end(); ++i) { @@ -1003,6 +1004,10 @@ Editor::sensitize_the_right_region_actions () have_midi = true; } + if (r->is_compound()) { + have_compound_regions = true; + } + if (r->locked()) { have_locked = true; } else { @@ -1084,6 +1089,10 @@ Editor::sensitize_the_right_region_actions () _region_actions->get_action("place-transient")->set_sensitive (false); } + if (have_compound_regions) { + _region_actions->get_action("uncombine-regions")->set_sensitive (true); + } + if (have_audio) { if (have_envelope_visible && !have_envelope_invisible) { |