From 2bd0d8ebd350c13bff1849d99b7a817c8ff1c951 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 4 Sep 2021 10:55:16 -0400 Subject: [PATCH] Task: Make sure tag and dependency attributes are not identified as orphan UDAs --- src/Task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index 7c91ee0b3..767178303 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -1542,8 +1542,8 @@ std::vector Task::getUDAOrphanUUIDs () const { std::vector orphans; for (auto& it : data) - if (it.first.compare (0, 11, "annotation_", 11) != 0) - if (Context::getContext ().columns.find (it.first) == Context::getContext ().columns.end ()) + if (Context::getContext ().columns.find (it.first) == Context::getContext ().columns.end ()) + if (not (isAnnotationAttr (it.first) || isTagAttr (it.first) || isDepAttr (it.first))) orphans.push_back (it.first); return orphans;