Properly save custom header data

Ensure adding custom data upgrades to KDBX4
Implement review feedback
This commit is contained in:
Janek Bevendorff 2018-02-18 21:01:22 +01:00
parent 114f00e1e8
commit 5410d78bbb
26 changed files with 189 additions and 174 deletions

View file

@ -397,7 +397,7 @@ void KdbxXmlReader::parseBinaries()
}
}
void KdbxXmlReader::parseCustomData(CustomData *customData)
void KdbxXmlReader::parseCustomData(CustomData* customData)
{
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "CustomData");
@ -410,7 +410,7 @@ void KdbxXmlReader::parseCustomData(CustomData *customData)
}
}
void KdbxXmlReader::parseCustomDataItem(CustomData *customData)
void KdbxXmlReader::parseCustomDataItem(CustomData* customData)
{
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "Item");
@ -748,7 +748,7 @@ Entry* KdbxXmlReader::parseEntry(bool history)
}
continue;
}
if (m_xml.name() == "CustomData" ){
if (m_xml.name() == "CustomData") {
parseCustomData(entry->customData());
continue;
}