Bug 366316

Summary: Adding tag results in duplicate tag error
Product: [Applications] digikam Reporter: Andrew Goodbody <ajg02>
Component: Tags-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 5.1.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 5.1.0
Attachments: Error dialogue

Description Andrew Goodbody 2016-07-31 22:18:27 UTC
Adding a tag by typing in the side-bar results in a dialogue box about a duplicate tag error.

Reproducible: Always

Steps to Reproduce:
1. Select photo for tagging
2. Click on tag parent entry in side-bar
3. Type name of new tag in edit box
4. Press 'Enter'
5. Error dialogue box is shown.
6. Parent entry is now sorted to top of tags list in side-bar
7. Clicking OK at step 4 does NOT trigger this bug.

Actual Results:  
Duplicate tag entry dialogue box is shown.

Expected Results:  
No error should be reported and sort order of tags should not be changed.
Comment 1 Andrew Goodbody 2016-07-31 22:20:27 UTC
Just to be clear this is about creating a new tag, not just assigning a pre-existing one.
Comment 2 Andrew Goodbody 2016-07-31 22:23:42 UTC
Sorry, about 7), there is no 'OK'. I meant clicking on the 'Create <new tag> in <parent> line in the dropdown.
Comment 3 caulier.gilles 2016-08-01 08:02:32 UTC
What the content of the error dialog ?

When you run digiKam in a console, what's printed as debug trace while error dialog appear ?

Problem is in album view or tags manager, or both ?

Gilles Caulier
Comment 4 Andrew Goodbody 2016-08-01 23:25:20 UTC
Created attachment 100410 [details]
Error dialogue

Attachment shows error dialogue box. The output on the console is simply
digikam.general: ("pastry")
digikam.general: "pastry"  ::  "/food/pastry"
digikam.general: ("pastry")
digikam.general: "pastry"  ::  "/food/pastry"
This is in the Album view, I have not tried Tags Manager.
Comment 5 Maik Qualmann 2016-08-02 10:38:41 UTC
Git commit e22a2467c80e2b541e5debff76f84d9d70ce057d by Maik Qualmann.
Committed on 02/08/2016 at 10:37.
Pushed by mqualmann into branch 'master'.

fix double tagging action
FIXED-IN: 5.1.0

M  +2    -1    NEWS
M  +1    -1    libs/imageproperties/imagedescedittab.cpp
M  +0    -5    libs/tags/addtagslineedit.cpp

http://commits.kde.org/digikam/e22a2467c80e2b541e5debff76f84d9d70ce057d