Bug 472712 - Filesystem tree jumps to selected folder when expanding another folder
Summary: Filesystem tree jumps to selected folder when expanding another folder
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.108.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-27 19:37 UTC by Grósz Dániel
Modified: 2023-11-17 08:06 UTC (History)
2 users (show)

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


Attachments
Screen recording (Kate Filesystem panel) (1.27 MB, video/x-matroska)
2023-07-27 19:37 UTC, Grósz Dániel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grósz Dániel 2023-07-27 19:37:24 UTC
Created attachment 160572 [details]
Screen recording (Kate Filesystem panel)

SUMMARY
This report pertains to the filesystem browser's tree view mode in the Open/Save dialogs and the Filesystem (or Open File) panels in Kate, KDevelop and Kile. It doesn't come up in Dolphin(part).

Sometimes a folder gets into a selected state, and from then on, the filesystem view scrolls to that folder whenever you expand another folder in the tree if the selected folder off the screen. This is inconvenient because it scrolls away from the folder you expanded. (It's mostly an issue in the Filesystem panels, which are persistently open; it's less of an issue in the file dialogs.)

See attached screen recording.

- If you click a file in (e.g.) the Kate Filesystem panel, it opens, but the file is immediately deselected, so the problem doesn't occur.
- If you right-click a file or folder to open its context menu, and then close the context menu, it remains selected, but the selection disappears if you expand a folder, so the problem doesn't occur.
- If you click on a folder in the Filesystem panel to open it, then use the Back or Up button to go back, then it stays selected. That's when the problem occurs. (I'm not sure if there are other ways to trigger it.)

STEPS TO REPRODUCE
0. Go to a folder that contains many files either directly or in subfolders.
1. Click on a subfolder.
2. Click Up or Back to go back to the folder containing it. (The folder you previously opened stays selected.)
3. Scroll the panel's contents such that the selected folder is off the screen. (Expand some folders beforehand if necessary.)
4. Click on the + or > sign to expand a folder.

OBSERVED RESULT
The filesystem browser jumps (scrolls) to the selected folder.

EXPECTED RESULT
The filesystem browser's contents stay where they are (except of course files/folders below the folder you expand are shifted down) so you can see the contents of the folder you expand immediately, just like when nothing is selected.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230724
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.3-1-default (64-bit)
Graphics Platform: X11