[ui] Camera Response Function display: make it safer

More checks on file content and catch exception.
Check nbColumns using a slot instead of using the property.
Use a workaround on the CVS loader to avoid a crash (do not set active
to False).
This commit is contained in:
Fabien Castan 2020-08-24 11:33:26 +02:00
parent 04c21fffe4
commit b295242576
4 changed files with 38 additions and 22 deletions

View file

@ -499,6 +499,7 @@ class BaseNode(BaseObject):
def getAttributes(self):
return self._attributes
@Slot(str, result=bool)
def hasAttribute(self, name):
return name in self._attributes.keys()