Bug 383534 - Folder open dialog: clicking on Places panel entry should expand its tree in the main view
Summary: Folder open dialog: clicking on Places panel entry should expand its tree in ...
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (other bugs)
Version First Reported In: 5.45.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-15 10:03 UTC by DrSlony
Modified: 2025-12-28 08:14 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DrSlony 2017-08-15 10:03:25 UTC
1. Run Gwenview, select a bunch if images and click Copy To.
2. In the Copy To window which appears, make sure the tree view in the right panel has all its entries collapsed. i.e. you should see the "bin", "boot", "etc", "root", "tmp" etc folders but nothing deeper. http://i.imgur.com/iQkRHuH.png
3. Click on an entry in the Places panel, e.g. on "Photos" which resolves to ~/photos. What should happen is that the ~/photos folder opens and I should see its contents in the right panel. What actually happens is that the first time I click on "Photos", the right panel simply expands the "/home" folder. At that point I can't even see the "~/photos" folder let alone what's in it, I can only see /home/lost+found and /home/morgan. http://i.imgur.com/4iCsmML.png
4. Click on "Photos" in the Places panel again. Now the right panel expands to /home/morgan and the "Photos" folder is highlighted, but not expanded. http://i.imgur.com/QJSEBqd.png
5. Click on "Photos" a third time. Nothing changes, the ~/photos folder is still highlighted but not expanded. I can't see what's in it unless I click on it in the right panel.

I would expect that clicking on a Places item immediately goes into that folder in the right panel.
Comment 1 Nate Graham 2017-09-08 17:12:40 UTC
Confirmed. Note that ~/Photos is actually selected, it's just that the tree view doesn't show it properly, because /home/<username> doesn't get expanded. Part of the problem is this ugly file picker panel that starts rooted at / instead of ~. I think we should use different options when calling up the file picker. That may solve the issue altogether.
Comment 2 Nate Graham 2018-04-14 17:48:51 UTC
As of KDE Frameworks 5.45, this is working better, but still not perfectly: ~ is the default location, and clicking on a places panel entry always highlights it in the directory tree, but it's never expanded in the main view

And this is a KIO issue, not specific to Gwenview.
Comment 3 Dave 2019-02-25 18:41:48 UTC
I created a review request for a patch on:
https://phabricator.kde.org/D19313
Comment 4 Dave 2019-03-11 20:27:29 UTC
Git commit 51ba55f2c5cc598eea79d2e4d99c21f4baae179a by David Palacio.
Committed on 11/03/2019 at 20:26.
Pushed by davidp into branch 'master'.

Remove URLs being fetched when listing job is completed

Remove the discard URL logic from _k_slotNewItems and move it to a new slot _k_slotCompleted so that KDirModel can process as many batches as needed until its job is finished.

Reviewed By: dfaure

Differential Revision: https://phabricator.kde.org/D19586

M  +11   -2    src/widgets/kdirmodel.cpp

https://commits.kde.org/kio/51ba55f2c5cc598eea79d2e4d99c21f4baae179a
Comment 5 JJ 2025-12-28 08:14:34 UTC
I believe I also see this issue. Right-clicking on an entry and selecting "Edit" shows me that these are all pointing to my home folder, for some reason. Changing their location fixes it for me.