Don't store children key in Parameter.opts (closes #494, fixes #493)

This commit is contained in:
Luke Campagnola 2018-06-05 15:20:15 -07:00
parent 01c349e14b
commit 937e3420e2

View File

@ -180,7 +180,7 @@ class Parameter(QtCore.QObject):
raise Exception("Parameter must have a string name specified in opts.")
self.setName(name)
self.addChildren(self.opts.get('children', []))
self.addChildren(self.opts.pop('children', []))
self.opts['value'] = None
if value is not None: