eclipse-scout / scout.rt

https://www.eclipse.org/scout/
Eclipse Public License 2.0
34 stars 39 forks source link

TableTileGridMediator: fix removal of table user filters #1085

Closed bschwarzent closed 2 months ago

bschwarzent commented 2 months ago

Table user filters are identified by a key. If such a filter is added to a table, any existing filter with the same key is automatically removed first (but without triggering an event). For each filter added to the table, the TableTileGridMediator creates a corresponding tile filter. If multiple table filters with the same key (e.g. TableTextUserFilter) are added, the previous tile filter was not correctly removed.

This is apparent in the following situation:

To fix the problem, the tile filters created by the mediator have to be stored in a list. This allows the mediator to identify and remove table user filters later, similar to Table#addFilter.

387837