Summary: | Creating a folder while filtering messes the filter results | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Eduardo <eduardo.cruz> |
Component: | bars: filter | Assignee: | Eduardo <eduardo.cruz> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kfm-devel |
Priority: | NOR | ||
Version: | 21.08.1 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/system/dolphin/commit/3d49996615a094df8fc2cb613955abb740a0463a | Version Fixed In: | 22.04 |
Sentry Crash Report: | |||
Attachments: | Parent folder "a" is not displayed, despite being expanded and its child folders "b" and "b2" being displayed. |
Description
Eduardo
2021-09-10 18:14:56 UTC
I mentioned this in this MR, although it doesn't solve it: https://invent.kde.org/system/dolphin/-/merge_requests/271 I intend to investigate this bug, assigning to myself. Git commit ed83f37f06bd5c4b38c100503c3ad4dec2a87912 by Méven Car, on behalf of Eduardo Cruz. Committed on 04/10/2021 at 07:13. Pushed by meven into branch 'master'. Rewrite filter algorithm to properly support filtering with expanded folders under Detail View mode. Related: bug 411878 FIXED-IN: 21.12 M +63 -21 src/kitemviews/kfileitemmodel.cpp M +26 -12 src/tests/kfileitemmodeltest.cpp https://invent.kde.org/system/dolphin/commit/ed83f37f06bd5c4b38c100503c3ad4dec2a87912 A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/283 Git commit 3d49996615a094df8fc2cb613955abb740a0463a by Felix Ernst, on behalf of Eduardo Cruz. Committed on 28/11/2021 at 13:24. Pushed by felixernst into branch 'master'. Properly display parent folders when filtering is active and items are added or refreshed The methods slotRefreshItems(), slotItemsAdded() and slotItemsDeleted() are adapted so they are now compatible with the new behavior of filtering expanded folders achieved in ed83f37f06bd5c4b38c100503c3ad4dec2a87912. The new behavior is that expanded folders are hidden from view if neither the folder itself nor any of its contents passes the filter. Previously expanded folders would always stay visible no matter the filter. A bug where the parent expanded folder would disappear after adding or refreshing an item while filtering is also fixed. Tests are added to make sure these behavior changes won't regress. FIXED-IN: 22.04 M +145 -17 src/kitemviews/kfileitemmodel.cpp M +11 -1 src/kitemviews/kfileitemmodel.h M +218 -2 src/tests/kfileitemmodeltest.cpp https://invent.kde.org/system/dolphin/commit/3d49996615a094df8fc2cb613955abb740a0463a |