mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-19 20:44:16 +02:00
46d8588113
A project opened before the element collection panel's first load is queued until the load starts; one opened during a load goes into the model being loaded. ElementsCollectionWidget::removeProject() only removed the project from the model already shown, so a project closed in either window stayed in the collection, and the next reload read the freed project (crash in XmlElementCollection::root()). removeProject() now also takes the project out of the queue and out of the model being loaded. That model waits for its loading threads, which read the project, and drops the project's items from the list applied when the loading ends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>