revert to old behavior: default created from value if not present
This commit is contained in:
parent
07a99cb443
commit
4b002c06ba
@ -201,6 +201,7 @@ class Parameter(QtCore.QObject):
|
|||||||
|
|
||||||
if 'default' not in self.opts:
|
if 'default' not in self.opts:
|
||||||
self.opts['default'] = None
|
self.opts['default'] = None
|
||||||
|
self.setDefault(self.opts['value'])
|
||||||
|
|
||||||
## Connect all state changed signals to the general sigStateChanged
|
## Connect all state changed signals to the general sigStateChanged
|
||||||
self.sigValueChanged.connect(self._emitValueChanged)
|
self.sigValueChanged.connect(self._emitValueChanged)
|
||||||
|
Loading…
Reference in New Issue
Block a user