Bug 165344 - Empty albums should not be included when sorting albums by date
Summary: Empty albums should not be included when sorting albums by date
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Sort (show other bugs)
Version: 0.10.0
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-29 17:18 UTC by Thomas McGuire
Modified: 2017-08-18 11:25 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas McGuire 2008-06-29 17:18:15 UTC
Version:           0.10.0-svn (rev.: 819557) (using 4.00.84 (KDE 4.0.84 (KDE 4.1 >= 20080625), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.22.17-0.1-default

When sorting albums by date (View->Sort Albums->By Date), Digikam should not add albums to the list which do not have any images at all.

This often happens with hieracial albums, e.g. consider the following album structure:

- My France Holiday
	\- Paris
	\- Bretagne

Now, assume "My France Holiday" itself has no pictures, only "Paris" and "Bretagne" have.
When sorting by folder, this is fine, since "My France Holiday" has child items.
However, when sorting by date, the list is flat, and displaying "My France Holiday" does not make sense at all.

This was already a problem in KDE3, but in KDE4 it got worse, since Digikam now has the ability to have multiple collections, which also means that there is always an album "$HOME/Pictures" (when the default is used), and that album is usually empty by itself, but always displayed when sorting by date.
Comment 1 caulier.gilles 2008-12-05 18:28:06 UTC
Thomas,

This file still valid using digiKam 0.10.0-beta6 ?

Gilles Caulier
Comment 2 Thomas McGuire 2008-12-06 14:35:11 UTC
> This file still valid using digiKam 0.10.0-beta6 ?

Still valid with 0.10.0 beta7.
Comment 3 Andi Clemens 2009-10-25 02:08:26 UTC
Yes, this is still valid. But maybe we should re-visit this when porting the views...
Comment 4 caulier.gilles 2011-12-14 10:14:18 UTC
Andi, 

It still valid with digiKam 2.4 ?

Gilles Caulier
Comment 5 caulier.gilles 2014-08-23 21:53:00 UTC
Andi,

View have been ported with 4.x serie. Please test with last digiKam 4.2.0.

Gilles Caulier
Comment 6 caulier.gilles 2014-08-23 21:54:47 UTC
Mohamed,

What about this entry since Album sorts options have been re-implemented by you recently ?

Gilles Caulier
Comment 7 caulier.gilles 2015-05-10 14:18:48 UTC
Maik,

I remember than you patch Calendar Icon View item lister. This entry still valid with current implementation ?

Gilles
Comment 8 Maik Qualmann 2015-05-11 19:01:22 UTC
Gilles

I understand it this way: here it goes to the album tree and not to the album view. Bug is no longer reproducible here.

Maik
Comment 9 caulier.gilles 2015-05-11 19:14:31 UTC
Right Maik, it's about date album tree-view, not icon-view

Gilles