[Digikam-devel] [Bug 307303] delete group of photos problem

Marcel Wiesweg marcel.wiesweg at gmx.de
Tue Sep 25 14:04:28 BST 2012


https://bugs.kde.org/show_bug.cgi?id=307303

--- Comment #10 from Marcel Wiesweg <marcel.wiesweg at gmx.de> ---
The bug is quite obvious, grouping is simply not handled in the context of
deletion.
The first idea is to extend DIO::del to include grouped images, but that is not
desirable as not always the whole group shall be deleted.

We must have a look at all places where DeleteDialog is used. Let us ignore
deleting a whole album for the moment, cross-album grouping is too complex to
handle.
We have
1) ImageViewUtilities called from DigikamImageView
2) ImageWindow
3) LighttableWindow

It is fast to check if a picture has grouped images. Loading the actual image
ids is an uncached db query.

Idea for 1): Delete whole group if group is collapsed, delete only selected if
group is expanded. This must be implemented on the level of the view class, as
the filter model knows about collapse/expanded state.
An idea for 2) and 3) would be to extend DeleteDialog with a checkbox (x)
Delete grouped images
and showing/hiding the relevant URLs in the dialog depending on the check
state. This could be extended to 1) as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list