Bug 494308

Summary: After deleting a picture (in full screen mode), wrong picture is displayed
Product: [Applications] digikam Reporter: Nicofo <nicofo>
Component: Plugin-Generic-SlideShowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 8.5.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.5.0
Sentry Crash Report:
Attachments: Screencast of the problem.

Description Nicofo 2024-10-08 20:36:18 UTC
After deleting a picture in full screen mode, I expect that the next picture is displayed.
This is not the case: the second picture following the deleted one is displayed instead.

STEPS TO REPRODUCE
1. View an album in full screen
2. Delete the n th picture

OBSERVED RESULT
n+2 th picture is displayed

EXPECTED RESULT
n+1 th picture is displayed (i.e. next picture)

SOFTWARE/OS VERSIONS
digiKam-8.5.0-20240923T100112-Qt6-x86-64.appimage
Comment 1 Maik Qualmann 2024-10-08 20:41:18 UTC
I can't reproduce it. And I always delete in full screen mode when looking through/sorting out images.

Maik
Comment 2 Nicofo 2024-10-08 20:50:51 UTC
Created attachment 174544 [details]
Screencast of the problem.

Picture "3" is deleted (clicking on the trash button in the bottom left of the full screen mode)
Picture "4" should be displayed. But "5" is displayed instead.
Comment 3 Maik Qualmann 2024-10-08 20:56:46 UTC
OK, that's also full screen, but for me it's the slideshow. I confirm the problem.

Maik
Comment 4 Maik Qualmann 2024-10-08 21:14:42 UTC
Git commit 674c1d7dfa64ee0977ae3f52d74fb0fe6e03cf8d by Maik Qualmann.
Committed on 08/10/2024 at 21:13.
Pushed by mqualmann into branch 'master'.

fix next image in slideshow after delete a image
FIXED-IN: 8.5.0

M  +1    -1    NEWS
M  +12   -0    core/dplugins/generic/view/slideshow/common/slideshowloader.cpp

https://invent.kde.org/graphics/digikam/-/commit/674c1d7dfa64ee0977ae3f52d74fb0fe6e03cf8d
Comment 5 Maik Qualmann 2024-10-09 06:12:48 UTC
Git commit a82bd585ba0196820e12aceda91a978da79528bb by Maik Qualmann.
Committed on 09/10/2024 at 06:12.
Pushed by mqualmann into branch 'master'.

prevent duplicate code in the slideshow loader

M  +9    -44   core/dplugins/generic/view/slideshow/common/slideshowloader.cpp
M  +1    -0    core/dplugins/generic/view/slideshow/common/slideshowloader.h

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