mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-06-20 05:34:12 +02:00
4625964bb1
ElementsCollectionModel::highlightUnusedElement() only ever painted the currently-unused elements red; it never cleared the background of items that were no longer unused. So when an element was re-added to a project and saved, its red 'unused' highlight persisted until the model was rebuilt from scratch. Reset every item's background before re-applying the highlight to the current unused set.