mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 01:46:31 +02:00
[qt6][core] Don't store SignalInstance
in dict for node computations
When converting the `StatusData` to a dictionary, only data attributes should be stored in said dictionary. With Qt6, the `objectNameChanged` signal, of type `SignalInstance`, is added to the dictionary. It needs to be removed manually as it is not JSON-serializable. Otherwise, the nodes cannot be computed anymore.
This commit is contained in:
parent
92e56673ed
commit
fb5a882074
1 changed files with 4 additions and 1 deletions
|
@ -116,8 +116,11 @@ class StatusData(BaseObject):
|
|||
|
||||
def toDict(self):
|
||||
d = self.__dict__.copy()
|
||||
d.pop('destroyed', None) # skip non data attributes from BaseObject
|
||||
d["elapsedTimeStr"] = self.elapsedTimeStr
|
||||
|
||||
# Skip non data attributes from BaseObject
|
||||
d.pop("destroyed", None)
|
||||
d.pop("objectNameChanged", None)
|
||||
return d
|
||||
|
||||
def fromDict(self, d):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue