[dolphin] [Bug 442275] Creating a folder while filtering messes the filter results

Felix Ernst bugzilla_noreply at kde.org
Sun Nov 28 13:24:36 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=442275

Felix Ernst <fe.a.ernst at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Version Fixed In|                            |22.04
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/commit/3d4999661
                   |                            |5a094df8fc2cb613955abb740a0
                   |                            |463a

--- Comment #4 from Felix Ernst <fe.a.ernst at gmail.com> ---
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

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list