|
|
|
@ -1579,16 +1579,16 @@ void AlbumManager::slotDatesJobData(KIO::Job*, const TQByteArray& data)
|
|
|
|
|
|
|
|
|
|
// Check if Year Album already exist.
|
|
|
|
|
DAlbum *yAlbum = 0;
|
|
|
|
|
AlbumIterator it(d->rootDAlbum);
|
|
|
|
|
while (it.current())
|
|
|
|
|
AlbumIterator it2(d->rootDAlbum);
|
|
|
|
|
while (it2.current())
|
|
|
|
|
{
|
|
|
|
|
DAlbum* a = (DAlbum*)(*it);
|
|
|
|
|
DAlbum* a = (DAlbum*)(*it2);
|
|
|
|
|
if (a->date() == TQDate(year, 1, 1) && a->range() == DAlbum::Year)
|
|
|
|
|
{
|
|
|
|
|
yAlbum = a;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
++it;
|
|
|
|
|
++it2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// If no, create Year album.
|
|
|
|
|