diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 9fe224b814..9fc1fa924b 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -441,7 +441,7 @@ RouteTimeAxisView::build_automation_action_menu () automation_items.push_back (MenuElem (_("Hide all automation"), mem_fun(*this, &RouteTimeAxisView::hide_all_automation))); - if (subplugin_menu.get_parent()) + if (subplugin_menu.get_attach_widget()) subplugin_menu.detach(); automation_items.push_back (MenuElem (_("Plugins"), subplugin_menu));