diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-01 02:02:25 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-01 02:02:25 +0200 |
commit | 8fe2a308a58d08785d8d1b91114f0bcbca48419b (patch) | |
tree | 288ec6d0c8dc43e5399c2f2ddb152b676103ad15 /gtk2_ardour/editor_selection.cc | |
parent | 82d1d7ef0bd499868b49d49847a2a320cc088f85 (diff) |
GUI updates for transient rework
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 4386b22877..64d17f9ae5 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1116,6 +1116,7 @@ Editor::sensitize_the_right_region_actions () bool have_inactive_fade_out = false; bool have_active_fade_in = false; bool have_active_fade_out = false; + bool have_transients = false; for (list<RegionView*>::const_iterator i = rs.begin(); i != rs.end(); ++i) { @@ -1171,6 +1172,10 @@ Editor::sensitize_the_right_region_actions () have_not_at_natural_position = true; } + if (r->has_transients ()){ + have_transients = true; + } + if (ar) { if (ar->envelope_active()) { have_envelope_active = true; @@ -1196,6 +1201,8 @@ Editor::sensitize_the_right_region_actions () } } + _region_actions->get_action("split-region-at-transients")->set_sensitive (have_transients); + if (rs.size() > 1) { _region_actions->get_action("show-region-list-editor")->set_sensitive (false); _region_actions->get_action("show-region-properties")->set_sensitive (false); |