Skip to content

Commit

Permalink
fix: invalidate user processed and extent filters on data change
Browse files Browse the repository at this point in the history
  • Loading branch information
vaahtokarkki committed Dec 12, 2023
1 parent ca0d6b7 commit a72b86f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Fix: Filter newly inserted quality error rows correctly with user processed and map extent filters

## [2.0.4] - 2023-10-05

- Fix: Redraw map when an error is selected and errors are not visualized on map
Expand Down
6 changes: 6 additions & 0 deletions src/quality_result_gui/quality_error_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,15 @@ def __init__(

self._filter_user_processed_model = FilterByShowUserProcessedProxyModel()
self._filter_user_processed_model.setSourceModel(self._filter_model)
self._base_model.filterable_data_changed.connect(
self._filter_user_processed_model.invalidateFilter
)

self._filter_map_extent_model = FilterByExtentProxyModel()
self._filter_map_extent_model.setSourceModel(self._filter_user_processed_model)
self._base_model.filterable_data_changed.connect(
self._filter_map_extent_model.invalidateFilter
)

self._styled_model = StyleProxyModel()
self._styled_model.setSourceModel(self._filter_map_extent_model)
Expand Down

0 comments on commit a72b86f

Please sign in to comment.