Fix astate setting for combo parameters when setting all astate
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Thu, 25 Aug 2016 17:20:17 +0000 (19:20 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Thu, 25 Aug 2016 17:23:49 +0000 (19:23 +0200)
Don't try to be smart when chosing which parameters need their
automation updated but rather trust the list that was populated at
creation time when all relevant information had been gathered.

gtk2_ardour/generic_pluginui.cc

index 4e0492999a93fc87cab12bbc7fe61db49b0101db..a8dfb141812301a0ebd8a273c4af039b10e3702b 100644 (file)
@@ -987,9 +987,7 @@ void
 GenericPluginUI::set_all_automation (AutoState as)
 {
        for (vector<ControlUI*>::iterator i = input_controls_with_automation.begin(); i != input_controls_with_automation.end(); ++i) {
-               if ((*i)->controller || (*i)->button) {
-                       set_automation_state (as, (*i));
-               }
+               set_automation_state (as, (*i));
        }
 }