From 041cb8b81ab1c90b2906eb0309da4bf4bd3246a2 Mon Sep 17 00:00:00 2001 From: Julien-Haudegond <44610840+Julien-Haudegond@users.noreply.github.com> Date: Wed, 12 Aug 2020 10:31:06 +0200 Subject: [PATCH] [ui] GraphEditor: fix delete key issue --- meshroom/ui/qml/GraphEditor/GraphEditor.qml | 2 ++ meshroom/ui/qml/main.qml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meshroom/ui/qml/GraphEditor/GraphEditor.qml b/meshroom/ui/qml/GraphEditor/GraphEditor.qml index 2cf693ed..633fb93d 100755 --- a/meshroom/ui/qml/GraphEditor/GraphEditor.qml +++ b/meshroom/ui/qml/GraphEditor/GraphEditor.qml @@ -420,6 +420,8 @@ Item { onExited: uigraph.hoveredNode = null Keys.onDeletePressed: { + if(node.locked) + return if(event.modifiers == Qt.AltModifier) uigraph.removeNodesFrom(node) else diff --git a/meshroom/ui/qml/main.qml b/meshroom/ui/qml/main.qml index ed26ce3b..147ef53e 100755 --- a/meshroom/ui/qml/main.qml +++ b/meshroom/ui/qml/main.qml @@ -726,7 +726,7 @@ ApplicationWindow { node: _reconstruction.selectedNode property bool computing: _reconstruction.computing // Make NodeEditor readOnly when computing - readOnly: node.locked + readOnly: node ? node.locked : false onAttributeDoubleClicked: workspaceView.viewAttribute(attribute, mouse) onUpgradeRequest: {