Fix setup of gain envelope visible menu item.
git-svn-id: svn://localhost/ardour2/branches/3.0@10939 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5700d10890
commit
5ef06dd439
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user