Bug 167874 - Item count in tag and album view is not updated
Summary: Item count in tag and album view is not updated
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Engine (show other bugs)
Version: 0.9.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-31 18:21 UTC by Gandalf Lechner
Modified: 2022-01-22 14:02 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gandalf Lechner 2008-07-31 18:21:29 UTC
Version:           0.10.0-beta3 (rev.: 840177) (using 4.1.00 (KDE 4.1.0), Kubuntu packages)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.24-17-generic

When deleting pictures or removing tags, I saw that the count in the album and tag view is not updated correctly. When changing tags, the count was not changed at all. When deleting images, sometimes the count changed, but sometimes not.
Comment 1 caulier.gilles 2008-07-31 19:28:42 UTC
Gandalf,

I think it's a duplicates. something like that have been already reported here.

Gilles
Comment 2 Andi Clemens 2008-07-31 20:56:27 UTC
Yes it is somehow related to https://bugs.kde.org/show_bug.cgi?id=160564, but not exactly the same. In KDE3 it is only not updated when ALL instances of a tag are removed, but in KDE4 it is randomly... but maybe still the same bug? I have spent a lot of time on this and came to no conclusion...
Comment 3 Andi Clemens 2008-08-14 10:38:02 UTC
For KDE3 this issue is fixed now, see http://bugs.kde.org/show_bug.cgi?id=160564 for more details.
But this doesn't affect the KDE4 version for now, because the numbers are not updated at all due to a missing / not implemented method. We have to do further investigations first before porting the fixes into KDE4 as well.

Andi
Comment 4 caulier.gilles 2008-12-05 18:29:33 UTC
Andi,

What the status of porting code here?

Gilles Caulier
Comment 5 Andi Clemens 2008-12-05 18:36:18 UTC
I need to check that...

Andi
Comment 6 Andi Clemens 2008-12-05 19:25:59 UTC
SVN commit 893012 by aclemens:

fix wrong item count in album and tags view

BUG:167874

 M  +2 -1      NEWS  
 M  +26 -7     libs/database/albumdb.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=893012
Comment 7 Andi Clemens 2008-12-11 22:52:08 UTC
The bug re-appeared in KDE3. To reproduce:

1. Go into tag view
2. Select one tag
3. Remove this tag from one image in the icon view
4. Counter will not be updated

But it will work if you delete an image, so 
1. create a test folder
2. copy some images in it
3. check the counter for one tag in this test folder
4. delete some images again
5. check the tag-folder

So it seems that the collection is not updated when adding / removing tags.

Can anyone confirm this?

Andi
Comment 8 Marcel Wiesweg 2008-12-22 23:00:41 UTC
According to Andi this is a KDE3 bug, changing version. 

For 0.10 everything is working for me. Please note that there is a considerable, deliberate delay to limit time spent in counting methods (1s for albums, 2.5s for tags)
Comment 9 Andi Clemens 2008-12-23 11:14:37 UTC
It works again in KDE3. Strange... maybe the time I tested this digiKam had a bad day :-)
We haven't commited patches that could have fixed this issue. I'll close this one again, if the problem appears again I will do further investigations.

Andi