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

            Bug ID: 525131
           Summary: Selecting a file inside an expanded folder in the
                    Details/accordion view changes the dialog's location
                    to that file's folder
    Classification: Frameworks and Libraries
           Product: frameworks-kio
      Version First 6.3.0
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Open/save dialogs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Description:

When "Allow Expansion in Details View" is enabled in the open/save dialog,
folders become expandable accordion rows. If I expand a folder, navigate into
its children, and then click on a file inside that expanded subfolder, the
dialog changes its current location to that subfolder instead of just selecting
the file.
This happens at any depth: a file directly inside a top-level folder, or nested
several levels deep. It also happens when clicking a file inside an expanded
folder in the plain Tree view (which always shows the expansion arrows).

A file's parent folder should only drive the location when the file lives at
the currently browsed root. When the file is shown inside an expanded
subfolder, the location should stay where it is and only the name field should
update.

Steps to reproduce:
1. Open any file open/save dialog (e.g. Kate or Dolphin's file picker).
2. In the Options menu, enable "Allow Expansion in Details View" (or use the
Detailed View).
3. Browse to a directory, then expand a folder via its > arrow so its children
are visible.
4. Optionally nest further: expand a child folder.
5. Click on a file inside the expanded subfolder (not at the browse root).

Observed result: The dialog's current location jumps to the file's immediate
parent folder. Depth-agnostic: /home/x/ with an expanded parent_folder/ ->
clicking parent_folder/file.txt relocates the dialog to /home/x/parent_folder/.

Expected result: The file is selected and its name appears in the Name field;
the dialog location stays at the current root (flat behavior). No location
change when the file is already visible inside an expanded folder.

Software/OS versions:
- Operating System: Arch Linux
- KDE Plasma Version: 6.7.3
- KDE Frameworks Version: 6.x (kio 6.28.0)
- Qt Version: (fill in from kinfo / Info Center)

Additional info: More info and an illustration can be found in the KDE Discuss
post I created initially
https://discuss.kde.org/t/kde-file-picker-changes-path-to-parent-folder-when-selecting-a-file-demo-in-post/49889

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to