Bug 498580

Summary: "Add place entry" menu should use existing folder icon to specified folder as default icon
Product: [Frameworks and Libraries] frameworks-kio Reporter: ostap-tymur-tymchenko <ostap.tymchenko>
Component: PlacesAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: dolphin-bugs-null, kde, kdelibs-bugs-null, nate, postix
Priority: NOR    
Version First Reported In: 6.10.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 6.11
Sentry Crash Report:
Attachments: An example where a folder has an icon, but the "Add place entry" menu does not use that icon

Description ostap-tymur-tymchenko 2025-01-12 22:32:25 UTC
Created attachment 177308 [details]
An example where a folder has an icon, but the "Add place entry" menu does not use that icon

When creating a new place entry and specifying a folder, one must look for an icon manually, even when the folder already has an icon.  

One way of achieving this is to add a button next to the folder path entry, something like "Use same Icon as folder".
Comment 1 Bug Janitor Service 2025-01-16 21:48:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1787
Comment 2 Nate Graham 2025-01-17 15:12:57 UTC
Git commit 14f01dc42e4c39eb2ee75fab7aead29f2108af4f by Nate Graham.
Committed on 17/01/2025 at 14:52.
Pushed by ngraham into branch 'master'.

kfileplacesview: when adding new places item, let it figure out the icon

This is better than hardcoding it to the folder icon, since the location
you're creating a new Places item for may have a custom icon.

KFilePlaceEditDialog::getInformation can figure out the icon if we allow
it to; do so.
FIXED-IN: 6.11

M  +1    -1    src/filewidgets/kfileplacesview.cpp

https://invent.kde.org/frameworks/kio/-/commit/14f01dc42e4c39eb2ee75fab7aead29f2108af4f