Implement KDBX 4.1 PreviousParentGroup flag

This commit is contained in:
Janek Bevendorff 2021-11-09 23:52:54 +01:00
parent ffaeac130f
commit cd9ef58e98
10 changed files with 200 additions and 18 deletions

View file

@ -583,6 +583,10 @@ Group* KdbxXmlReader::parseGroup()
parseCustomData(group->customData());
continue;
}
if (m_xml.name() == "PreviousParentGroup") {
group->setPreviousParentGroupUuid(readUuid());
continue;
}
skipCurrentElement();
}
@ -602,11 +606,11 @@ Group* KdbxXmlReader::parseGroup()
}
for (Group* child : asConst(children)) {
child->setParent(group);
child->setParent(group, -1, false);
}
for (Entry* entry : asConst(entries)) {
entry->setGroup(group);
entry->setGroup(group, false);
}
return group;
@ -760,6 +764,10 @@ Entry* KdbxXmlReader::parseEntry(bool history)
}
continue;
}
if (m_xml.name() == "PreviousParentGroup") {
entry->setPreviousParentGroupUuid(readUuid());
continue;
}
skipCurrentElement();
}