Bug 494308 - After deleting a picture (in full screen mode), wrong picture is displayed
Summary: After deleting a picture (in full screen mode), wrong picture is displayed
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-SlideShow (show other bugs)
Version: 8.5.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-08 20:36 UTC by Nicofo
Modified: 2024-10-09 06:23 UTC (History)
1 user (show)

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


Attachments
Screencast of the problem. (468.71 KB, video/webm)
2024-10-08 20:50 UTC, Nicofo
Details

Note You need to log in before you can comment on or make changes to this bug.
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