Bug 145017 - Deleting an image from within DigiKam does not update the DigiKam database
Summary: Deleting an image from within DigiKam does not update the DigiKam database
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Trash (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-04 14:12 UTC by Thue Janus Kristensen
Modified: 2017-07-25 19:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.3
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thue Janus Kristensen 2007-05-04 14:12:56 UTC
Version:           0.9.1-3 (using KDE KDE 3.5.6)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When I delete an image in a DigiKam album from inside DigiKam (select+delete key, there does not seem to be an interface), it will query me on the next restart whether to delete the DigiKam database entry for the image.

Well, Duh. Of course the database entry should be deleted :).

So DigiKam needs to delete images from its database automatically when the images are deleted from inside DigiKam.
Comment 1 caulier.gilles 2007-05-04 14:19:11 UTC
Marcel, 

Can you confirm this problem with current implementation of digiKam ?

Gilles

Comment 2 Marcel Wiesweg 2007-05-04 18:41:45 UTC
No I cannot confirm. Are you sure you are using version 0.9.1? There is an interface, the delete dialog pops up when you press delete.
When the image is deleted, the database entry will be removed from db when the directory is automatically rescanned immediately after the file has  been removed. There will be a console message "digikam: Dirty: /some/dir".
Comment 3 Thue Janus Kristensen 2007-05-04 19:23:39 UTC
>No I cannot confirm. Are you sure you are using version 0.9.1?

Yes, just double-checked again.

>There is an interface, the delete dialog pops up when you press delete.

I got a delete progress bar, but no dialog.
Comment 4 Benjamin Molitor 2007-07-26 11:18:37 UTC
Reproduced with DigiKam 0.9.1 on (K)ubuntu. 

This concerns the DigiKam Image Editor - it happens when you delete a filee from the Image Editor, not when deleting from the DigiKam main window. It also seems to concern only hard deletes (shift+delete), not "Sending to Trash".

The Error Message at next restart reads: "There is an item in the database which does not appear to be on disk or is located in the root album of the path. This file should be removed from the database, however you may lose information.
digiKam cannot continue without removing the item from the database because all views depend on the information in the database. Do you want it to be removed from the database?"
Comment 5 caulier.gilles 2007-07-26 11:22:21 UTC
Benjamin,

I have just tried with 0.9.2 release (last stable) and I cannot reproduce this problem. Can you confirm it ?

Gilles Caulier
Comment 6 Benjamin Molitor 2007-07-26 11:36:58 UTC
Gilles,

the Problem seems to be fixed in 0.9.2, I could not reproduce it after upgrading.

Thanks!

Benjamin
Comment 7 caulier.gilles 2007-07-26 11:46:22 UTC
Thanks to report... I close this file now...

Gilles Caulier
Comment 8 Julian Klein 2008-02-09 08:30:47 UTC
Sry but I can still reproduce the problem with 0.9.3rc1 with openSuse Linux. After "send to trash" there is no confirmation dialog or else. On the next startup a dialog pops up and asks if the database entries should be deleted. Very annoying...