Bug 197808

Summary: Bad images sort order when starting Digikam
Product: [Applications] digikam Reporter: Thierry Florac <tflorac>
Component: Albums-ItemsSortAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, marcel.wiesweg
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 1.0.0

Description Thierry Florac 2009-06-25 08:55:44 UTC
Version:           1.0.0-beta1 (using 4.2.4 (KDE 4.2.4), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.29-2-686-bigmem

I generally sort images by date inside folders.
When restarting Digikam, the "Sort by date" option is checked but images are still sorted by name ; I have to select option "Sort by name" and "Sort by date" again for the correct option to be applied.
Comment 1 Marcel Wiesweg 2009-06-25 20:20:21 UTC
SVN commit 987243 by mwiesweg:

Set image sort order at creation

BUG: 197622

 M  +1 -0      digikamimageview.cpp  


--- trunk/extragear/graphics/digikam/digikam/digikamimageview.cpp #987242:987243
@@ -92,6 +92,7 @@
     setDropIndicatorShown(false);
 
     setToolTipEnabled(AlbumSettings::instance()->getShowToolTips());
+    imageFilterModel()->setSortRole((ImageSortSettings::SortRole)AlbumSettings::instance()->getImageSortOrder());
 
     ImageRotateLeftOverlay *rotateLeftOverlay   = new ImageRotateLeftOverlay(this);
     addOverlay(rotateLeftOverlay);