13
0

Set up layers menu correctly depending on current state.

git-svn-id: svn://localhost/ardour2/branches/3.0@8938 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-02-23 01:44:50 +00:00
parent 465aaffdd4
commit 8b1203dc33

View File

@ -466,9 +466,14 @@ RouteTimeAxisView::build_display_menu ()
layers_items.push_back(RadioMenuElem (layers_group, _("Overlaid"),
sigc::bind (sigc::mem_fun (*this, &RouteTimeAxisView::set_layer_display), Overlaid)));
dynamic_cast<RadioMenuItem*> (&layers_items.back())->set_active (_view && _view->layer_display() == Overlaid);
layers_items.push_back(RadioMenuElem (layers_group, _("Stacked"),
sigc::bind (sigc::mem_fun (*this, &RouteTimeAxisView::set_layer_display), Stacked)));
dynamic_cast<RadioMenuItem*> (&layers_items.back())->set_active (_view && _view->layer_display() == Stacked);
items.push_back (MenuElem (_("Layers"), *layers_menu));
if (!Profile->get_sae()) {