Bug 363704

Summary: preview thumbnails: Not updated when deleting an image
Product: [Applications] digikam Reporter: Dave Gilbert <gilbertd+kde>
Component: Preview-ImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin, swatilodha27
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.0
Attachments: State before step (2) - victim image selected
State after step (2) - after having deleted the image shown in (1)
After step (3) - showing the error because it selected the deleted image.

Description Dave Gilbert 2016-05-30 13:41:18 UTC
(This used to work 4.x
When I delete an image in preview mode, the set of thumbnails at the top don't update, leaving a thumbnail for a deleted image which then gives an error when you move back over it.

Reproducible: Always

Steps to Reproduce:
1. Open an icon and click on an image - the image is shown in preview mode, the strip of thumbnails at the top
2. Hit 'Delete'  - the preview now shows the next image along
3. Hit right arrow

Actual Results:  
After (2) The deleted image is still shown in the thumbnails at the top.
After (3) It selects the deleted image and then shows a 'Failed to load image'

(Images attached to explain)

Expected Results:  
After (2) the deleted image should disappear from the thumbnails
After (3) The previous still-existant image should be selected.

This is 5.0.0-beta5 from Fedora 24's digikam-5.0.0-0.10.beta5.fc24.x86_64 package
Comment 1 Dave Gilbert 2016-05-30 13:42:15 UTC
Created attachment 99268 [details]
State before step (2) - victim image selected
Comment 2 Dave Gilbert 2016-05-30 13:43:02 UTC
Created attachment 99269 [details]
State after step (2) - after having deleted the image shown in (1)
Comment 3 Dave Gilbert 2016-05-30 13:43:47 UTC
Created attachment 99270 [details]
After step (3) - showing the error because it selected the deleted image.
Comment 4 Maik Qualmann 2016-05-31 06:07:04 UTC
This problem is here with digiKam-5.0.0-beta7 not to reproduce. Do you use JPEG or RAW images? With sidecar files?

Maik
Comment 5 Dave Gilbert 2016-06-05 13:37:49 UTC
(In reply to Maik Qualmann from comment #4)
> This problem is here with digiKam-5.0.0-beta7 not to reproduce. Do you use
> JPEG or RAW images? With sidecar files?

Just JPEGs, imported straight off my camera (Sony DSC-HX50) via import from usb device.

Dave
Comment 6 caulier.gilles 2016-06-29 14:25:57 UTC
I cannot reproduce the problem here with 5.0.0-beta7.

Can we close this file ?

Gilles Caulier
Comment 7 swatilodha27 2016-06-29 17:47:25 UTC
I'm unable to reproduce the issue with 5.0.0-Beta7 version.
Comment 8 Dave Gilbert 2016-08-20 19:20:18 UTC
I can confirm this bug has disappeared in the digikam-5.1.0-1.fc24 packages.
Thanks!