mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-22 21:46:28 +02:00
[ui] GraphEditor: fix delete key issue
This commit is contained in:
parent
ff7f8b3e36
commit
041cb8b81a
2 changed files with 3 additions and 1 deletions
|
@ -420,6 +420,8 @@ Item {
|
||||||
onExited: uigraph.hoveredNode = null
|
onExited: uigraph.hoveredNode = null
|
||||||
|
|
||||||
Keys.onDeletePressed: {
|
Keys.onDeletePressed: {
|
||||||
|
if(node.locked)
|
||||||
|
return
|
||||||
if(event.modifiers == Qt.AltModifier)
|
if(event.modifiers == Qt.AltModifier)
|
||||||
uigraph.removeNodesFrom(node)
|
uigraph.removeNodesFrom(node)
|
||||||
else
|
else
|
||||||
|
|
|
@ -726,7 +726,7 @@ ApplicationWindow {
|
||||||
node: _reconstruction.selectedNode
|
node: _reconstruction.selectedNode
|
||||||
property bool computing: _reconstruction.computing
|
property bool computing: _reconstruction.computing
|
||||||
// Make NodeEditor readOnly when computing
|
// Make NodeEditor readOnly when computing
|
||||||
readOnly: node.locked
|
readOnly: node ? node.locked : false
|
||||||
|
|
||||||
onAttributeDoubleClicked: workspaceView.viewAttribute(attribute, mouse)
|
onAttributeDoubleClicked: workspaceView.viewAttribute(attribute, mouse)
|
||||||
onUpgradeRequest: {
|
onUpgradeRequest: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue