Bug 428733

Summary: import window always keeps last image
Product: [Applications] digikam Reporter: LarsE <ristretto17>
Component: Import-MainViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 7.2.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.2.0

Description LarsE 2020-11-05 15:26:48 UTC
SUMMARY
Import window always keeps last image

STEPS TO REPRODUCE
When importing images from a folder to an album by choosing "download and delete selected" (all pictures are selected) or "download and delete all" will import all pictures to the album specified. 
The source folder on the file-system is empty after successful import. 

OBSERVED RESULT
The import editor window still shows the last image, which sometimes is a little irritating.


EXPECTED RESULT
All processed and deleted pictures should be removed from the import editor window.

SOFTWARE/OS VERSIONS
Windows 10 professional x64 (2004)
Comment 1 Maik Qualmann 2020-11-05 22:24:54 UTC
Git commit ca8b4c6bfbb7438b12f5ce1cffdd4474eceedd5b by Maik Qualmann.
Committed on 05/11/2020 at 22:24.
Pushed by mqualmann into branch 'master'.

some important fixes for the item models
Incorrect or no items from the file path cache were removed.
Because the index in the model is not the same as the qlonglong id.
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +12   -9    core/libs/database/models/itemmodel.cpp
M  +6    -4    core/showfoto/thumbbar/showfotoimagemodel.cpp
M  +12   -10   core/utilities/import/models/importimagemodel.cpp

https://invent.kde.org/graphics/digikam/commit/ca8b4c6bfbb7438b12f5ce1cffdd4474eceedd5b