From 9c733915a0bc4b5274fac749b1adc874da79a6ee Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 22 May 2011 16:11:00 +0000 Subject: basic uncombining (no post-facto region trimming) git-svn-id: svn://localhost/ardour2/branches/3.0@9566 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_selection.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gtk2_ardour/editor_selection.cc') 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::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) { -- cgit v1.2.3