graph: use directconnection

I don't know, but this might help fix certain crashes where a "connect" signal is received before an "add" signal
This commit is contained in:
itsmattkc
2021-09-27 10:38:13 -07:00
parent a653ab6808
commit 05a8a9f25a
+4 -4
View File
@@ -95,10 +95,10 @@ void NodeGraph::childEvent(QChildEvent *event)
node_children_.append(node);
// Connect signals
connect(node, &Node::InputConnected, this, &NodeGraph::InputConnected);
connect(node, &Node::InputDisconnected, this, &NodeGraph::InputDisconnected);
connect(node, &Node::ValueChanged, this, &NodeGraph::ValueChanged);
connect(node, &Node::InputValueHintChanged, this, &NodeGraph::InputValueHintChanged);
connect(node, &Node::InputConnected, this, &NodeGraph::InputConnected, Qt::DirectConnection);
connect(node, &Node::InputDisconnected, this, &NodeGraph::InputDisconnected, Qt::DirectConnection);
connect(node, &Node::ValueChanged, this, &NodeGraph::ValueChanged, Qt::DirectConnection);
connect(node, &Node::InputValueHintChanged, this, &NodeGraph::InputValueHintChanged, Qt::DirectConnection);
emit NodeAdded(node);
emit node->AddedToGraph(this);