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

Eduardo bugzilla_noreply at kde.org
Fri Sep 10 19:14:56 BST 2021


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

            Bug ID: 442275
           Summary: Creating a folder while filtering messes the filter
                    results
           Product: dolphin
           Version: 21.08.1
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: bars: filter
          Assignee: dolphin-bugs-null at kde.org
          Reporter: eduardo.cruz at kdemail.net
                CC: kfm-devel at kde.org
  Target Milestone: ---

Created attachment 141451
  --> https://bugs.kde.org/attachment.cgi?id=141451&action=edit
Parent folder "a" is not displayed, despite being expanded and its child
folders "b" and "b2" being displayed.

SUMMARY
While filtering on expanded details view mode, if we create a folder that
satisfies the filter as a child of an expanded folder, Dolphin will mess up the
file listing, making the parent folder disappear and the childs appear in a
buggy state without their parent being display (see screenshot).

This is a very specific bug, very difficult to explain and difficult to trigger
in normal use, but it exists and I have successfully devised a simple recipe to
reproduce it consistently. It is really difficult to explain in words, its
better to just do the steps below and you will see the bug for yourself.

STEPS TO REPRODUCE
1. Create an empty folder anywhere, named "test" (or whatever name you desire).
Open it on Dolphin.
2. Make sure you are on Details View mode with expandable folders.
3. Create a folder named "a" inside "test".
4. Right click "a", Create New -> Folder, and name it "b".
5. Expand folder "a", you should see the tree: "a" as parent and "b" as child.
6. Filter for the string "b". It should not change the view at all, since
folder "b" passes the filter and "a" is shown because it is its parent.
7. Now, with the filter activated, right click "a" and create another folder
named "b2" (a sibling of "b").
8. The bug is now triggered: after 1 second, folder "a" will disappear, and you
will only see folders "b" and "b2", weirdly linked to no parent (screenshot).


OBSERVED RESULT
Folders "b" and "b2" are displayed linked to an invisible parent.


EXPECTED RESULT
Folder "a" should remain on display, with folders "b" and "b2" as its children
passing the filter.


SOFTWARE/OS VERSIONS
Dolphin 21.08.1
Operating System: Arch Linux
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.14.2-arch1-2 (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION
I discovered this bug while testing my solution for bug #411878. I thought I
had introduced the bug, bug then I found out it was already there before my
changes.

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


More information about the kfm-devel mailing list