mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
.. the lazy delete was a horrible hack and memory leak. So, now the paint delegate no longer dereferences the IntervalItem * from the QTreeWidgetItem. Instead we use setData for UserRole+1 to store the interval color when constructing the trees. The paint function can get this directly and we avoid any contention when the intervals are deleted and created. The lazy delete can be removed and deleted once the changes have been notified via intervalsUpdate().
5.6 KiB
5.6 KiB