Summary: | Sort collections combo box in ablum properties | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Richard Taylor <rjt-kde-bugs> |
Component: | Albums-Filters | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | 0.7.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Richard Taylor
2004-12-22 14:59:03 UTC
CVS commit by pahlibar: * sort collections by names * fix an issue with empty collections showing up if the saved collection list has an empty collection BUG: 95669 M +1 -1 albumfolderview.cpp 1.70 M +1 -0 albumpropsedit.cpp 1.20 M +4 -0 albumsettings.cpp 1.26 --- kdeextragear-3/digikam/digikam/albumfolderview.cpp #1.69:1.70 @@ -322,5 +322,5 @@ AlbumFolderItem* AlbumFolderView::findPa QString collection = album->getCollection(); - if (!collectionList.contains(collection)) + if (collection.isEmpty() || !collectionList.contains(collection)) collection = i18n("Uncategorized Albums"); --- kdeextragear-3/digikam/digikam/albumpropsedit.cpp #1.19:1.20 @@ -209,4 +209,5 @@ QStringList AlbumPropsEdit::albumCollect } + collections.sort(); return collections; } --- kdeextragear-3/digikam/digikam/albumsettings.cpp #1.25:1.26 @@ -110,4 +110,5 @@ void AlbumSettings::init() d->albumCollectionNames.append(i18n("Todo")); d->albumCollectionNames.append(i18n("Miscellaneous")); + d->albumCollectionNames.sort(); d->albumSortOrder = AlbumSettings::ByFolder; @@ -150,5 +151,8 @@ void AlbumSettings::readSettings() config->readListEntry("Album Collections"); if (!collectionList.isEmpty()) + { + collectionList.sort(); d->albumCollectionNames = collectionList; + } d->albumSortOrder = |