Warning, /graphics/digikam/project/patches/Remove_Create_in_People_option_for_face_tags_Change_Create_to.patch is written in an unsupported language. File is not indexed.
0001 diff --git a/core/libs/tags/engine/taggingactionfactory.cpp b/core/libs/tags/engine/taggingactionfactory.cpp 0002 index 7c74a183c3..4aa9293b6c 100644 0003 --- a/core/libs/tags/engine/taggingactionfactory.cpp 0004 +++ b/core/libs/tags/engine/taggingactionfactory.cpp 0005 @@ -34,7 +34,6 @@ 0006 #include "tagscache.h" 0007 #include "coredbaccess.h" 0008 #include "coredb.h" 0009 -#include "facetags.h" 0010 0011 namespace Digikam 0012 { 0013 @@ -241,9 +240,7 @@ QList<TaggingAction> TaggingActionFactory::actions() const 0014 } 0015 0016 actions << newUnderParent; 0017 - //Don't need to add top level for face tags 0018 - if (d->parentTagId != FaceTags::personParentTag()) 0019 - actions << newToplevel; 0020 + actions << newToplevel; 0021 } 0022 else // if (createItemTopLevel && createItemTopLevel->action() == defaultAction) 0023 { 0024 @@ -394,7 +391,7 @@ QString TaggingActionFactory::suggestedUIString(const TaggingAction& action) con 0025 } 0026 else // shallCreateNewTag 0027 { 0028 - if (action.parentTagId() && d->parentTagId != FaceTags::personParentTag()) 0029 + if (action.parentTagId()) 0030 { 0031 return i18nc("Create New Tag <tag name> in <parent tag path>", "Create \"%1\" in %2", 0032 action.newTagName(), TagsCache::instance()->tagPath(action.parentTagId(), TagsCache::NoLeadingSlash));