From 67bf8e7b2a8e1b8c14a3a6c9b18e42c78fd0d2cb Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 22 Apr 2012 22:33:14 +0200 Subject: [PATCH] Write history only for entries that are not history items. --- src/format/KeePass2XmlWriter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/format/KeePass2XmlWriter.cpp b/src/format/KeePass2XmlWriter.cpp index 3c03a0aa..034ca548 100644 --- a/src/format/KeePass2XmlWriter.cpp +++ b/src/format/KeePass2XmlWriter.cpp @@ -362,7 +362,10 @@ void KeePass2XmlWriter::writeEntry(const Entry* entry) } writeAutoType(entry); - writeEntryHistory(entry); + // write history only for entries that are not history items + if (entry->parent()) { + writeEntryHistory(entry); + } m_xml.writeEndElement(); }