Bug 197808 - Bad images sort order when starting Digikam
Summary: Bad images sort order when starting Digikam
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-ItemsSort (show other bugs)
Version: 1.0.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-25 08:55 UTC by Thierry Florac
Modified: 2022-02-20 08:46 UTC (History)
2 users (show)

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


Attachments

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