After editing image, saving it and closing editor... 1. The image shown in the main window is still the one before edits 2. The image selected on the thumbbar is the image following the edited one The thumbnail image is actually correctly updated. I can reproduce it consistently. Additionally, turning the thumbbar off and on removes current selection. This may be related to bug 326796, but my pictures are on NTFS partition. This is on 5.0.0~beta3-wily~ppa1 from philip5's ppa, but I think I've seen it also on 4.x
To identfy and trying to reproduce the problem, can you take a screencast of you screen when problem occurs ? Thanks in advance Gilles Caulier
Created attachment 96976 [details] Bug screencast Note at about 0:10 selection change in thumbbar and image not being updated.
If i understand the screencast, the problem is about the image preview which is not updated automatically when editor save changes. Right ? Thumbnails is updated even. Perhaps some debug statement are visible on the console during the operations. Can you copy all console messages here please ? Gilles Caulier
The preview is one thing. The thumbnail is updated, but the selection moves to the next image. Note at the end I have to click the updated thumbnail to see the updated image. To actually see the following image (the one selected after 0:10) I have to first pick a different picture. It's getting a little wicked, but take a look how the thumbnail selection changes when I clicked save and it should be pretty obvious. BTW: I noticed that sometimes the preview does follows the thumbnail, so I see the correct preview of the next image. It's still the next one, not the edited one.
Created attachment 96978 [details] Console output Only part while saving the image, let me know if you need larger context.
I suspect that you use versionning with editor. Right ? If yes, this still reproducible when versionning is disabled ? Gilles Caulier
You're right. After disabling versioning everything works as I would expect it: thumbbar selection does not change, preview is updated.
There is a problem with "scroll current item to center of thumbbar". This option must be turned on so that the error occurs. Maik
Please ignore Comment 8. Maik
Created attachment 96996 [details] ImageCategorizedView.patch Workaround for this timing problem. The new image URL is still unknown in the item view after saving the image. Maik
Tested here. As i can see, i cannot reproduce the problem here with this patch... Michael, if you can confirm on your computer, this will be nice. Gilles Caulier
Sure, I'll give it a try, but not before weekend.
I had only time for a quick test so far, but seems to work just as I'd expect it to work. Thanks!
I'm technically not really happy with this workaround. I still look for a better solution... Maik
Git commit b1319ec3b93ccdfd6a3a26561a3f0f55e070997e by Maik Qualmann. Committed on 08/02/2016 at 20:35. Pushed by mqualmann into branch 'master'. fix current item in the icon view selected by the image editor FIXED-IN: 5.0.0 M +2 -1 NEWS M +1 -1 app/items/digikamimageview.cpp M +35 -0 app/items/imagecategorizedview.cpp M +5 -0 app/items/imagecategorizedview.h http://commits.kde.org/digikam/b1319ec3b93ccdfd6a3a26561a3f0f55e070997e