diff options
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 5c7fcb3d9c..57db35ccf3 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1045,12 +1045,16 @@ Editor::sensitize_the_right_region_actions () its current setting. */ - have_envelope_invisible = true; + have_envelope_invisible = false; if (*i) { AudioRegionView* arv = dynamic_cast<AudioRegionView*> (*i); - if (arv && arv->envelope_visible()) { - have_envelope_visible = true; + if (arv) { + if (arv->envelope_visible()) { + have_envelope_visible = true; + } else { + have_envelope_invisible = true; + } } } |