https://bugs.kde.org/show_bug.cgi?id=371578

            Bug ID: 371578
           Summary: untagged images no longer shown in "no tags" overview
                    when removing existing tag
           Product: digikam
           Version: 5.1.0
          Platform: Fedora RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Tags
          Assignee: digikam-de...@kde.org
          Reporter: beaaeecffmiqwryxcmbw2ta2cu...@protected32.unixadm.org

When removing all tags from an image file using the "Captions/Tags" sidebar the
image is not listed in the "No Tags" overview.

Reproducible: Always

Steps to Reproduce:
1. add a fresh image (verify that it shows up in the "No Tags" overview)
2. tag the image (the image file now vanished from the "No Tags" overview)
3. remove the tag _using "Captions/Tags" sidebar

Actual Results:  
image file is not listed in "No Tags"

Expected Results:  
image file should be listed in "No Tags"

When tagging an image, e.g. with "mytag", it seems that also the tags "Color
Label None" and "Pick Label None" are applied to that image. When removing the
"mytag" tag, the other two tags stay in place so the image file still has
"tags", although they're not visible.

Example:
# image 84265 is freshly added
MariaDB [digikam]> select * from ImageTags where imageid = 84265;
Empty set (0.00 sec)

# tag the image with "mytag"
MariaDB [digikam]> select * from Tags where id in (select tagid from ImageTags
where imageid = 84265);
+-----+------+------------------+------+---------+-----+-----+
| id  | pid  | name             | icon | iconkde | lft | rgt |
+-----+------+------------------+------+---------+-----+-----+
|  87 |   11 | mytag            | NULL | NULL    | 775 | 834 |
|  97 |   92 | Color Label None | NULL | NULL    | 698 | 699 |
| 107 |   92 | Pick Label None  | NULL | NULL    | 678 | 679 |
+-----+------+------------------+------+---------+-----+-----+
3 rows in set (0.00 sec)

# remove the tag "mytag"
MariaDB [digikam]> select * from Tags where id in (select tagid from ImageTags
where imageid = 84265);
+-----+------+------------------+------+---------+-----+-----+
| id  | pid  | name             | icon | iconkde | lft | rgt |
+-----+------+------------------+------+---------+-----+-----+
|  97 |   92 | Color Label None | NULL | NULL    | 698 | 699 |
| 107 |   92 | Pick Label None  | NULL | NULL    | 678 | 679 |
+-----+------+------------------+------+---------+-----+-----+
2 rows in set (0.00 sec)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to