Bug 366316 - Adding tag results in duplicate tag error
Summary: Adding tag results in duplicate tag error
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Engine (show other bugs)
Version: 5.1.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-31 22:18 UTC by Andrew Goodbody
Modified: 2016-08-02 10:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0


Attachments
Error dialogue (10.90 KB, image/png)
2016-08-01 23:25 UTC, Andrew Goodbody
Details

Note You need to log in before you can comment on or make changes to this bug.
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