[Digikam-devel] [Bug 284136] New: After moving images the old thumbnails remain there.
pochini at shiny.it
pochini at shiny.it
Sat Oct 15 23:04:13 BST 2011
https://bugs.kde.org/show_bug.cgi?id=284136
Summary: After moving images the old thumbnails remain there.
Product: digikam
Version: 2.2.0
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Albums GUI
AssignedTo: digikam-devel at kde.org
ReportedBy: pochini at shiny.it
Version: 2.2.0 (using KDE 4.6.5)
OS: Linux
This bug was not present in 2.1.1. When I move one image it is actually moved
to the destination folder or trash, but sometimes its thumbnail also remains in
the old place. Since the old thumbnail hasn't the associated image anymore it
cannot be moved or deleted again. F5 does not help. This happens more often
when many images are moved at once.
Reproducible: Sometimes
Steps to Reproduce:
Select some pics and hit DEL.
Actual Results:
Pics are moved to trash, but their thumbs stay.
Expected Results:
The thumbs should go too.
Since the bug is not reliably reproduceable, I thought is was caused by some
sort of race condition. I also guessed it had to do with the notify mechanism.
Digging into the diff from 2.1.1 I noticed this change:
-----
2011-09-17 Marcel Wiesweg <marcel.wiesweg at gmx.de>
[...]Instead of imageInfosDeleted, use an interval based notify
method which has no overhead (imageInfosDeleted can be slow
because the list needs to be built)
-----
So I tried to revert all the changes in:
core/libs/models/imagemodel.cpp
core/libs/models/imagemodel.h
core/libs/models/imagethumbnailmodel.cpp
core/libs/models/imagethumbnailmodel.h
and the problem doesn't show up anymore.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list