Bug 498580 - "Add place entry" menu should use existing folder icon to specified folder as default icon
Summary: "Add place entry" menu should use existing folder icon to specified folder as...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Places (other bugs)
Version First Reported In: 6.10.0
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-12 22:32 UTC by ostap-tymur-tymchenko
Modified: 2025-01-17 15:12 UTC (History)
5 users (show)

See Also:
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 (36.31 KB, image/jpeg)
2025-01-12 22:32 UTC, ostap-tymur-tymchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
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