Bug 463026

Summary: Unable to reset custom collection icon
Product: [Applications] digikam Reporter: José Oliver-Didier <jose_oliver>
Component: Albums-TreeViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 7.9.0   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In: 7.10.0
Sentry Crash Report:
Attachments: Example Collection with thumbnail icon - OneDrive icon

Description José Oliver-Didier 2022-12-14 01:34:12 UTC
Created attachment 154575 [details]
Example Collection with thumbnail icon - OneDrive icon

SUMMARY
***
Unable to reset custom collection collection icon 
***

STEPS TO REPRODUCE
1.  Launch Digikam, click on "Album" tab
2. Drag and drop an image over the collection icon from tree-view. A pop-up menu will appear where you can assign an image as a thumbnail.
3.  Add image as collection thumbnail
4. Reset collection thumbnail icon to revert to default icon.

OBSERVED RESULT
- No method for reverting collection icon.
- In the case of albums, the right click menu provides a "Reset Albums Icon", right clicking on collection icon does not provide an option.

EXPECTED RESULT
- Right click on Collection icon and option for "Reset Collections Icon", as well as an easier option to set the Collection icon.

SOFTWARE/OS VERSIONS
- Windows 11

ADDITIONAL INFORMATION
- Usage scenario: I am adding thumbnails to my collection to label them as cloud folders (Example: OneDrive, Dropbox), refer to attached image.
Comment 1 Maik Qualmann 2022-12-14 07:20:16 UTC
Git commit f99cb0f145a019da9aa16e360100ee4403f85eb4 by Maik Qualmann.
Committed on 14/12/2022 at 07:19.
Pushed by mqualmann into branch 'qt5-maintenance'.

add menu action to reset collection icon
FIXED-IN: 7.10.0

M  +2    -1    NEWS
M  +12   -1    core/app/items/utils/contextmenuhelper_albums.cpp
M  +5    -0    core/libs/album/treeview/albumselectiontreeview.cpp

https://invent.kde.org/graphics/digikam/commit/f99cb0f145a019da9aa16e360100ee4403f85eb4
Comment 2 Maik Qualmann 2022-12-14 07:36:43 UTC
Git commit a8aefb0341cab5528cd900c9cfe71fc160dc899c by Maik Qualmann.
Committed on 14/12/2022 at 07:36.
Pushed by mqualmann into branch 'qt5-maintenance'.

different action text is not necessary

M  +1    -12   core/app/items/utils/contextmenuhelper_albums.cpp

https://invent.kde.org/graphics/digikam/commit/a8aefb0341cab5528cd900c9cfe71fc160dc899c
Comment 3 Maik Qualmann 2022-12-14 20:42:22 UTC
Git commit 2f79eb87868b6eee08894f13d8fbea83de12aa9d by Maik Qualmann.
Committed on 14/12/2022 at 20:41.
Pushed by mqualmann into branch 'qt5-maintenance'.

we can add more actions in the album root (collection root)

M  +13   -35   core/libs/album/treeview/albumselectiontreeview.cpp

https://invent.kde.org/graphics/digikam/commit/2f79eb87868b6eee08894f13d8fbea83de12aa9d