From 05a8a9f25ad84f8330160d98f0ea4b570c3d12fa Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Mon, 27 Sep 2021 10:38:13 -0700 Subject: [PATCH] graph: use directconnection I don't know, but this might help fix certain crashes where a "connect" signal is received before an "add" signal --- app/node/graph.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/node/graph.cpp b/app/node/graph.cpp index 53fb04e51..a2d04b233 100644 --- a/app/node/graph.cpp +++ b/app/node/graph.cpp @@ -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);