Bug 216412

Summary: Show warning message before album deletion when directories containing files which are not shown by digiKam
Product: [Applications] digikam Reporter: Michael G. Hansen <mike>
Component: Albums-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: bugtracker_kde, caulier.gilles, mathieu, metzpinguin, px79
Priority: NOR    
Version: 2.5.0   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In: 7.2.0

Description Michael G. Hansen 2009-11-27 19:05:48 UTC
Version:           1.0.0-beta6+svn (using KDE 4.3.2)
OS:                Linux
Installed from:    Debian testing/unstable Packages

Take an album which contains images and a text file. Delete all the images in the album, then delete the album -> you think the album was empty, but you deleted the text file (which was not shown).

I think digikam should warn the user when he deletes an album which contains files which are not shown by digikam.
Comment 1 caulier.gilles 2011-12-23 11:19:25 UTC
Michael,

This file still valid using digiKam 2.4 ?

Gilles Caulier
Comment 2 Peter Albrecht 2012-02-04 10:47:08 UTC
This file is still valid in digikam 2.5.0 (KDE 4.7.4).
Comment 3 Peter Albrecht 2012-02-04 11:42:22 UTC
Bug #293283 is related to this bug.
Comment 4 Maik Qualmann 2016-12-10 21:30:36 UTC
*** Bug 369334 has been marked as a duplicate of this bug. ***
Comment 5 bugtracker_kde 2021-01-09 15:38:47 UTC
Is there a way to get a list of used file extensions?
I think a way to implement this would be to extend AlbumModificationHelper#slotAlbumDelete to build a file list of the album(s) to be deleted and to check if there are file that do not match with the standard image extensions. If files are found a warning is displayed and in case of confirmation the existing code continues. Otherwise the user needs to sort out the files manually.

Best
Kenspeckle
Comment 6 Maik Qualmann 2021-01-17 07:32:26 UTC
Fixed with this commit:

https://invent.kde.org/graphics/digikam/-/commit/e2e468e2d23603ae49db753ed156bf95b49d3b03

Maik