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
This commit is contained in:
Paul Davis 2012-11-12 20:03:57 +00:00
parent edd694171b
commit fc14ecb93b
1 changed files with 7 additions and 4 deletions

View File

@ -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