Write history only for entries that are not history items.

This commit is contained in:
Felix Geyer 2012-04-22 22:33:14 +02:00
parent 7063f5296a
commit 67bf8e7b2a

View File

@ -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();
}