Bug 443112 - Filters Do Not Work on Folders
Summary: Filters Do Not Work on Folders
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 24.05.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-29 10:49 UTC by Dashon
Modified: 2024-06-20 22:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dashon 2021-09-29 10:49:26 UTC
SUMMARY
Alright, so in gwenview when you add a filter (does not matter which one). It will filter out all the files that do not meet the filter criteria as it should. However, the filters do not apply to folders the same way that they apply to files. In other words if I am in a directory and I apply a filter by date. Even if neither the folder itself nor any image in that folder fall into the date range specified. The folder will still show up in the filtered results. The same thing happens when applying any other type of filter. Now let's say that I choose the "name" filter this time instead of the "date" filter. If I type in say "Bob" in the "Name Contains" text box. I would expect that only files, folders, or folders that contain a file that has the string "bob" to show up. However, what instead happens is that a completely empty folder with an irrelevant name for example "Jason" shows up.

STEPS TO REPRODUCE
1. Open a folder containing a mixture of images and folders in gwenview.
2. Apply a filter of some kind.


OBSERVED RESULT
Regardless of how you try to filter the files/folders. Folders will always show up in the filtered results.

EXPECTED RESULT
Only folder(s) that match the filtered criteria should show up. Preferably, not having the folder show up at all unless the folder itself matches the filter criteria would be ideal. However, in the case that file(s) inside of the folder match the filter criteria, only the file(s) within that folder should show up in the results and not the folder. 

THE PROBLEM
In a folder with a sufficient number of other folders, it defeats the purpose of filtering if the results are cluttered with irrelevant entries.

Operating System: EndeavourOS
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.8-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-7500U CPU @ 2.70GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Comment 1 Dashon 2021-10-09 07:55:22 UTC
For reference, the same issue was recently fixed in dolphin https://invent.kde.org/system/dolphin/-/merge_requests/271