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:
parent
0e7b9c6a98
commit
35a20a8bcc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user