mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-19 20:44:16 +02:00
31730678c5
Closing a modified project and choosing Discard left the project in the project tree. The panel removed its item, but the project still emits projectInformationsChanged() while it is torn down (setModified()), and GenericPanel answered by adding the project back, with items for its sheets. Once the project was freed, a click on one of those sheets called diagram->showMe() on a freed Diagram: SIGSEGV in QObjectPrivate::maybeSignalConnected(), the backtrace reported on the forum (topic 3215). The panel now stops listening to a project when it is closed, to its sheets and to its embedded title block collection, before removing its item. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>