From fc14ecb93b35e00a76de98a20f6ff2cecc40bbd1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 12 Nov 2012 20:03:57 +0000 Subject: [PATCH] do not attach plugin automation submenu to automation menu if the route has no plugins (avoid common user confusion) - thanks thorsten git-svn-id: svn://localhost/ardour2/branches/3.0@13468 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/route_time_axis.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index fa909dfe57..4467bdc6d7 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -414,10 +414,13 @@ RouteTimeAxisView::build_automation_action_menu (bool for_selection) items.push_back (SeparatorElem ()); /* Attach the plugin submenu. It may have previously been used elsewhere, - so it was detached above */ - - items.push_back (MenuElem (_("Plugins"), subplugin_menu)); - items.back().set_sensitive (!subplugin_menu.items().empty() && (!for_selection || _editor.get_selection().tracks.size() == 1));; + so it was detached above + */ + + if (!subplugin_menu.items().empty()) { + items.push_back (MenuElem (_("Plugins"), subplugin_menu)); + items.back().set_sensitive (!for_selection || _editor.get_selection().tracks.size() == 1);; + } } void