13
0

GenericUI: add a sanity-check for FileChoosers

Assert that all FileChooserButton created are for properties, because
the remaining code assumes that it should setup things for a property.
This commit is contained in:
Julien "_FrnchFrgg_" RIVAUD 2016-07-28 20:57:44 +02:00
parent 0e7b9c6a98
commit 35a20a8bcc

View File

@ -665,6 +665,9 @@ GenericPluginUI::build_control_ui (const Evoral::Parameter& param,
if (desc.datatype == Variant::PATH) {
/* We shouldn't get that type for input ports */
assert(param.type() == PluginPropertyAutomation);
/* Build a file selector button */
// Create/add controller