improved sequence creation

This commit is contained in:
itsmattkc
2019-09-27 03:38:21 +10:00
parent e0a483065a
commit 9806c772ac
7 changed files with 150 additions and 58 deletions
+5
View File
@@ -59,6 +59,11 @@ void NodeGraph::TakeNode(Node *node, QObject* new_parent)
return;
}
if (!node->CanBeDeleted()) {
qWarning() << "Tried to delete a Node that's been flagged as not deletable";
return;
}
node->DisconnectAll();
disconnect(node, SIGNAL(EdgeAdded(NodeEdgePtr)), this, SIGNAL(EdgeAdded(NodeEdgePtr)));