summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-05-22 16:11:00 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-05-22 16:11:00 +0000
commit9c733915a0bc4b5274fac749b1adc874da79a6ee (patch)
tree1db070ef198c7b7890cb98c84a37a1321c810183 /gtk2_ardour/editor_selection.cc
parentd40ee9548661f88db1bc1dcda0b463220d59a8d8 (diff)
basic uncombining (no post-facto region trimming)
git-svn-id: svn://localhost/ardour2/branches/3.0@9566 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r--gtk2_ardour/editor_selection.cc9
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) {