From eee3837245f570d36e5d4d92409660c8ff777b5b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 25 Apr 2016 12:31:50 -0400 Subject: remove explicit setting of Toggle flag for AutomationControls Make it be based on the ParameterDescriptor, which indicates toggle status anyway --- libs/ardour/plugin_insert.cc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'libs/ardour/plugin_insert.cc') diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index b0d4d2f9ac..688645eb94 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -2607,10 +2607,6 @@ PluginInsert::PluginControl::PluginControl (PluginInsert* p, list->set_interpolation(Evoral::ControlList::Discrete); } } - - if (desc.toggled) { - set_flags(Controllable::Toggle); - } } /** @param val `user' value */ @@ -2680,10 +2676,6 @@ PluginInsert::PluginPropertyControl::PluginPropertyControl (PluginInsert* alist()->set_yrange (desc.lower, desc.upper); alist()->reset_default (desc.normal); } - - if (desc.toggled) { - set_flags(Controllable::Toggle); - } } void -- cgit v1.2.3