mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-07 12:14:14 +02:00
e055438f30
A text group kept at the bottom of the page, on a master element, connects to its project's XRefPropertiesChanged with a lambda that has no context object. The connection belongs to the project, so it outlives the group: once the group is deleted (paste a coil, undo, then make any other edit), changing a cross-reference setting in the project properties calls QTimer::singleShot() on the freed group and QElectroTech crashes. Pass the group as the context of that connection and of the linkedElementChanged one beside it, so Qt removes both when the group goes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>