mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-20 12:08:24 -04:00
Implement KDBX 4.1 PreviousParentGroup flag
This commit is contained in:
parent
ffaeac130f
commit
cd9ef58e98
10 changed files with 200 additions and 18 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue