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:
parent
edd694171b
commit
fc14ecb93b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue