diff options
author | Ben Loftis <ben@glw.com> | 2009-04-16 18:37:29 +0000 |
---|---|---|
committer | Ben Loftis <ben@glw.com> | 2009-04-16 18:37:29 +0000 |
commit | 68f0da769473632d1b84daf608299e98fa2955c0 (patch) | |
tree | 3d74bff02feed05270f2e244bfee2086c61c3832 /gtk2_ardour/route_time_axis.cc | |
parent | d68045d6c5933580dace6b63311040f4b1716f72 (diff) |
fix minor issues with displaying and hiding plugin automation lanes. the menu nd display were not in sync which sometimes caused items to not be hidable
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4988 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 303a697bfd..e929607249 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -397,7 +397,8 @@ void RouteTimeAxisView::automation_click () { conditionally_add_to_selection (); - build_automation_action_menu (); + if (!automation_action_menu) + build_automation_action_menu (); automation_action_menu->popup (1, gtk_get_current_event_time()); } @@ -1839,10 +1840,12 @@ RouteTimeAxisView::redirect_menu_item_toggled (RouteTimeAxisView::RedirectAutoma if (showit != ran->view->marked_for_display()) { if (showit) { + ran->menu_item->set_active(true); ran->view->set_marked_for_display (true); ran->view->canvas_display->show(); ran->view->canvas_background->show(); } else { + ran->menu_item->set_active(false); rai->redirect->mark_automation_visible (ran->what, true); ran->view->set_marked_for_display (false); ran->view->hide (); |