#1141 closed defect (done)
CollectionViews do not remove all corresponding ListViewItems when an item is removed from the collection
Reported by: | mkommend | Owned by: | swagner |
---|---|---|---|
Priority: | low | Milestone: | HeuristicLab 3.3.1 |
Component: | Core.Views | Version: | 3.3.1 |
Keywords: | Cc: |
Description
Currently all CollectionViews have only one ListViewItem per Item. Nevertheless this should be corrected in the CollectionViews.
Change History (7)
comment:1 Changed 14 years ago by mkommend
- Owner changed from swagner to mkommend
comment:2 Changed 14 years ago by mkommend
- Status changed from new to assigned
comment:3 Changed 14 years ago by mkommend
- Owner changed from mkommend to swagner
- Status changed from assigned to new
Refactored the code to remove a ListViewItems to use linq extension and added a comment to explain why only the first matching ListViewItem is removed in r4203.
comment:4 Changed 14 years ago by swagner
- Status changed from new to assigned
comment:5 Changed 14 years ago by swagner
- Resolution set to fixed
- Status changed from assigned to closed
- Version changed from 3.3.0 to 3.3.1
Thanks. Reviewed changes.
comment:6 Changed 14 years ago by swagner
- Milestone changed from Iteration 4 to Current
Milestone Iteration 4 deleted
comment:11 Changed 14 years ago by swagner
- Milestone changed from Current to HeuristicLab 3.3.0
Milestone Current deleted
Note: See
TracTickets for help on using
tickets.
This behavior is intended, because a collection could contain the same item twice. The code will be refactored to use the FirstOrDefault extension method of IEnumerable and the break statement will be removed.