Bug 252458

Summary: Sort order in SlideShow
Product: [Applications] digikam Reporter: Thomas Trepl <ttrepl>
Component: Plugin-Generic-SlideShowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, wazery
Priority: NOR    
Version: 1.4.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 2.6.0
Sentry Crash Report:

Description Thomas Trepl 2010-09-26 19:55:09 UTC
Version:           1.4.0 (using KDE 4.5.1) 
OS:                Linux

I have a series of images created in June/July (exif and file dates same). Today in September I manually created and added some images. I have nimages named like
...
IMGP7431.JPG
IMGP7432.JPG
IMGP7433.JPG
IMGP7433-wo-ist-das.png
IMGP7434.JPG
IMGP7435.JPG
...
The "IMGP7433-wo-ist-das.png" will be shown as the very last picture in the slideshow. I even set the file date to the same like IMGP7433.JPG, but it doesnt help. How can i force the slideshow (I use the one including subfolders) to show IMGP7433-wo-ist-das.png right after IMGP7433.JPG ?

Reproducible: Always



Expected Results:  
Seems so that digikam sorts by creation date but I expected sorting by filename as it is selected in the main menue (View->Sort images->By Name).
Comment 1 Marcel Wiesweg 2011-01-28 11:03:56 UTC
I can confirm: The "normal" slideshow modes, All and Selection, just take the image infos from the model, so they respect sort order.
The Recursive slideshow though will do its own loading, not sorting at all.
Comment 2 Islam Wazery 2012-03-19 13:31:01 UTC
I think this bug is resolved now, for me in version 2.5 it's not reproducible any more. Please Thomas Trepl can you check it now.
Comment 3 Thomas Trepl 2012-03-19 18:23:03 UTC
(In reply to comment #2)
> I think this bug is resolved now, for me in version 2.5 it's not
> reproducible any more. Please Thomas Trepl can you check it now.

well, I tried with 2.5.0 and the result is still the same as before. It seems that for the recursive diashow it counts *when* the picture has been added to the album. The picture which has been added at last comes at last. It works perfect for dia show modes "All", "Selected" and the "Extended" show (which also goes recursive thru the subalbums), but unfortunatly not for the "Including subalbums".

A workaround is to copy the new picture into the subalbum, take all the pics out (cut-paste to another temp-dir) and put them all back again. Than it seems that they get added in the sorted-by-name sequence.

For me, its still there - Version 2.5.0 on KDE 4.8.1
--
Thomas
Comment 4 Islam Wazery 2012-03-19 19:36:41 UTC
Yes, now I understands, I will work on it.
Comment 5 Islam Wazery 2012-03-23 18:45:59 UTC
This bug status need to be changed to RESOLVED, due to this commit: http://commits.kde.org/digikam/e1ce85b2fbb8222fbfc4f3e06aa5b3823928b501
Comment 6 Islam Wazery 2012-04-20 07:16:22 UTC
Git commit 98bebc754e8d546abb0851be5b023704ee798f28 by Islam Wazery.
Committed on 23/03/2012 at 19:38.
Pushed by wazery into branch 'master'.

Sort order in recursive SlideShow

M  +5    -0    libs/database/imageinfolist.cpp
M  +1    -0    libs/database/imageinfolist.h
M  +3    -0    utilities/maintenance/imageinfojob.cpp

http://commits.kde.org/digikam/98bebc754e8d546abb0851be5b023704ee798f28