Bug 162245 - Assigned tag list not updated correctly when "show assigned tags" filter is active
Summary: Assigned tag list not updated correctly when "show assigned tags" filter is ...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Engine (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-18 07:36 UTC by krienke
Modified: 2012-08-08 07:21 UTC (History)
0 users

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


Attachments
quick fix (402 bytes, patch)
2008-05-30 17:40 UTC, Andi Clemens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description krienke 2008-05-18 07:36:13 UTC
Version:           0.9.4-beta4 (using KDE 3.5.9)
Installed from:    Compiled From Sources
Compiler:          gcc 4.2.1 
OS:                Linux

When entering tags for a photo in digikams sidetab of imageeditor with  "show only assigned tags" activated, then sometimes the list of assigned tags shown is not updated when I assign a new tag to the photo by entering its name in the text field for tags.

It seemed to me that this happens when I enter a tag that already exists and only assign it to the current photo by pressing ENTER after entering the tag name. It seems to work fine when I enter a completely new tag so the tag itself is created and assigned. 

To get the tag list displayed straight again you have to turn "show assigned tags" off and then on again. Now you will see the correct list of assigned tags.
Comment 1 Andi Clemens 2008-05-24 14:04:13 UTC
First of all, the tags are assigned when pressing the "apply" button or when you are moving to the next image (the tags are either assigned automatically or a message box will appear to warn you that you will loose all made changes). So the list should only be updated when pressing apply.

But you are right, when applying the changes, the list still is not being updated. You have to move to the next image and back again to get an updated list.


>> "It seems to work fine when I enter a completely new tag so the tag itself is created and assigned."

I can not confirm that adding a completely new tag in the text field updates the list.
Comment 2 Andi Clemens 2008-05-30 17:15:16 UTC
I tested a little and found out that if you assign a tag with the context menu rather than with the sidebar, the "list of already assigned tags" is updated. Maybe we have just to emit a signal here... I'll try to locate the problem.
Comment 3 Andi Clemens 2008-05-30 17:40:05 UTC
Created attachment 25013 [details]
quick fix

This fixes the problem, although I'm not sure if it is the right way.

Gilles, what do you think? Works for me...
Comment 4 caulier.gilles 2008-06-02 08:31:58 UTC
SVN commit 815537 by cgilles:

digiKam from KDE3 branch : update tag view afetr to have apply changes from Captions & Tags sidebar tab
BUGS: 162245


 M  +1 -0      imagedescedittab.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=815537