Bug 366518

Summary: Showfoto writes to wrong file when switching between images
Product: [Applications] digikam Reporter: Frank Steinmetzger <dev+kde>
Component: Showfoto-SaveAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 5.2.0
Sentry Crash Report:

Description Frank Steinmetzger 2016-08-08 11:26:29 UTC
The program seems to have some difficulty working with several images at once.

Reproducible: Always

Steps to Reproduce:
1. Open several images into Showfoto, for example in Dolphin using Open with…
2. Edit one of them (image “A”).
3. Switch to another (image “B”), e.g. using the space key.
4. Showfoto asks whether to save the changes to image A. Select Cancel.
5. Showfoto asks a second time (this should not happen in the first place). If I decline again, all is well.
6. Select Save.

Actual Results:  
The changed content of image A is saved to image B, both within Showfoto canvas and the file on disk. So now, image B is lost.

Expected Results:  
The Save-question should only be asked once, and if answered with Yes, the contest shall be saved to the correct file.

I observed this behaviour for the first time quite some time ago, both Showfoto 4 and 5 are affected.
Comment 1 Maik Qualmann 2016-08-08 19:16:43 UTC
Git commit a0e8a30c4ffb26d6de99b55924f3bbeafe622653 by Maik Qualmann.
Committed on 08/08/2016 at 19:12.
Pushed by mqualmann into branch 'master'.

fix switching between images in Showfoto, if keys are used
FIXED-IN: 5.2.0

M  +2    -1    NEWS
M  +7    -11   showfoto/main/showfoto.cpp

http://commits.kde.org/digikam/a0e8a30c4ffb26d6de99b55924f3bbeafe622653