Skip to content

Test that a click on a port of a locked node does nothing - #548

Merged
paceholder merged 1 commit into
masterfrom
locked-node-press-test
Nov 22, 2026
Merged

paceholder merged 1 commit into
masterfrom
locked-node-press-test

Conversation

@paceholder

Copy link
Copy Markdown
Owner

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation/refactoring (test only)

Description

Add a regression test for #396: clicking a port without a connection on a locked node, twice.

The crash was fixed in 3.0.13 by 3f46f74 (#487): a locked node ignores the mouse press. No test covered it. The test locks a node, clicks its output port twice, and checks that no connection and no undo step appear and the node does not move.

There is no library change.

Testing

  • Qt version tested: Qt 6.12.0, macOS (Apple Clang)
  • Existing tests still pass (721 assertions in 63 test cases, offscreen)
  • Added tests for new functionality. Without the early return for locked nodes in NodeGraphicsObject::mousePressEvent, the test fails (SIGSEGV on my machine, a failed check in another build).
  • Not tested: Qt 5, Windows, Linux (CI will).

Breaking changes?

No.

Related issue

Related to #396 (closed) and #487.

This covers #396. The crash was fixed by 3f46f74. The test fails without that fix.
@paceholder
paceholder merged commit 4789cc8 into master Nov 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant