Skip to content

Commit f5aad28

Browse files
vlad-modpaceholder
authored andcommitted
DataFlowGraphModel::loadNode not registering signals fix
1 parent b16cee8 commit f5aad28

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/DataFlowGraphModel.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,30 @@ void DataFlowGraphModel::loadNode(QJsonObject const &nodeJson)
473473
onOutPortDataUpdated(restoredNodeId, portIndex);
474474
});
475475

476+
connect(model.get(),
477+
&NodeDelegateModel::portsAboutToBeDeleted,
478+
this,
479+
[restoredNodeId, this](PortType const portType, PortIndex const first, PortIndex const last) {
480+
portsAboutToBeDeleted(restoredNodeId, portType, first, last);
481+
});
482+
483+
connect(model.get(),
484+
&NodeDelegateModel::portsDeleted,
485+
this,
486+
&DataFlowGraphModel::portsDeleted);
487+
488+
connect(model.get(),
489+
&NodeDelegateModel::portsAboutToBeInserted,
490+
this,
491+
[restoredNodeId, this](PortType const portType, PortIndex const first, PortIndex const last) {
492+
portsAboutToBeInserted(restoredNodeId, portType, first, last);
493+
});
494+
495+
connect(model.get(),
496+
&NodeDelegateModel::portsInserted,
497+
this,
498+
&DataFlowGraphModel::portsInserted);
499+
476500
_models[restoredNodeId] = std::move(model);
477501

478502
Q_EMIT nodeCreated(restoredNodeId);

0 commit comments

Comments
 (0)