[ui] GraphEditor: fix error when node is clicked with control and not selected

This commit is contained in:
ChemicalXandco 2021-01-22 22:49:44 +00:00
parent 6f50f652c2
commit aef50d9bde

View file

@ -441,7 +441,7 @@ Item {
onPressed: {
if (mouse.button == Qt.LeftButton) {
if (mouse.modifiers & Qt.ControlModifier) {
if (mainSelected) {
if (mainSelected && selected) {
// left clicking a selected node twice with control will deselect it
uigraph.selectedNodes.remove(node)
uigraph.selectedNodesChanged()