diff options
author | Carl Hetherington <carl@carlh.net> | 2011-12-07 18:18:46 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-12-07 18:18:46 +0000 |
commit | 5ef06dd439088226683beff5c6fc1d5af55a014b (patch) | |
tree | 1908867040456f9b33fccd25de121b35c6ab6d85 /gtk2_ardour/editor_selection.cc | |
parent | 5700d10890669e8a890288b208808f8a8467855a (diff) |
Fix setup of gain envelope visible menu item.
git-svn-id: svn://localhost/ardour2/branches/3.0@10939 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-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; + } } } |