Repair UUID of inconsistent history items.

Closes #130
This commit is contained in:
Florian Geyer committed 2016-08-03 23:48:40 +02:00
1 parent cd1192b409
commit 8d16522d39
5 files changed
+53 -1

No files matched your search

+7
View File
@@ -778,6 +778,13 @@ Entry* KeePass2XmlReader::parseEntry(bool history)
}
Q_FOREACH (Entry* historyItem, historyItems) {
if (historyItem->uuid() != entry->uuid()) {
if (m_strictMode) {
raiseError("History element with different uuid");
} else {
historyItem->setUuid(entry->uuid());
}
}
entry->addHistoryItem(historyItem);
}