[Digikam-devel] [Bug 160564] No refresh of the number of pictures assigned to a tag after removing the tag from some pictures

Andi Clemens andi.clemens at gmx.net
Sun Jul 6 22:56:00 BST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=160564         
andi.clemens gmx net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      everconfirmed|0                           |1



------- Additional Comments From andi.clemens gmx net  2008-07-06 23:55 -------
I can confirm this and it seems to happen only when all instances of the tags are removed. I created a new database for this test. Example:

1. only one tag exists to keep testing simple
2. only one folder exists to keep testing simple (9 images)
3. select all images in the folder, assign the tag
4. totals are getting updated correctly
5. select not all images (8 images), remove tag
6. totals are getting updated correctly
7. now select the one remaining image
8. remove tag
9. totals are not updated
10. select all images again, assign
11. totals are getting updated correctly
12. select all images, remove tag
13. totals are not updated...

Playing around with GDB, I found out that in TagFolderView::slotRefresh (line 1016) the Map doesn't contain the right values. In my example the tag has the ID 2. If I remove the tag from all images, the data of the map contains a strange integer value (1635373), if I remove the tag only from 8 images, data field of the map contains a '1', which is correct.
Somehow removing the last instance of a tag-image-relationship (which happens on removing all tags for example) sets a wrong data field in the tagsStatMap.
But I don't really know what to do about it. Went through all Hub functions, but I can't see anything strange.

Gilles, Marcel, any idea?



More information about the Digikam-devel mailing list