Bug 428733 - import window always keeps last image
Summary: import window always keeps last image
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-MainView (show other bugs)
Version: 7.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-05 15:26 UTC by LarsE
Modified: 2020-11-05 22:24 UTC (History)
0 users

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


Attachments

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