Fix problem for removing edge while computing

This commit is contained in:
Lee Geertsen 2019-09-06 11:04:12 +02:00 committed by Yann Lanthony
parent 34a90563c8
commit 3c32aaeecd
No known key found for this signature in database
GPG key ID: 519FAE6DF7A70642

View file

@ -254,11 +254,11 @@ Item {
onPressed: {
var canEdit = true
if(_reconstruction.computing) {
if(uigraph.taskManager.nodes.contains(edge.dst.node)) {
if(uigraph.taskManager.nodes.contains(edge.src.node)) {
canEdit = false;
} else {
if(object.globalStatus == "SUCCESS") {
var nodes = uigraph.graph.onlyNodesFromNode(edge.dst.node);
var nodes = uigraph.graph.onlyNodesFromNode(edge.src.node);
for(var i = 0; i < nodes.length; i++) {
if(["SUBMITTED", "RUNNING"].includes(nodes[i].globalStatus) && nodes[i].chunks.at(0).statusNodeName == nodes[i].name) {
canEdit = false;