mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 15:59:50 -05:00
Print warning about invalid entry references.
This commit is contained in:
parent
cba8fd7e51
commit
2f58b854ed
@ -49,9 +49,16 @@ void KeePass2XmlReader::readDatabase(QIODevice* device, Database* db, KeePass2Ra
|
||||
}
|
||||
}
|
||||
|
||||
if (!m_xml.error() && !m_tmpParent->children().isEmpty()) {
|
||||
qWarning("KeePass2XmlReader::readDatabase: found %d invalid entry references",
|
||||
m_tmpParent->children().size());
|
||||
if (!m_xml.error()) {
|
||||
if (!m_tmpParent->children().isEmpty()) {
|
||||
qWarning("KeePass2XmlReader::readDatabase: found %d invalid group reference(s)",
|
||||
m_tmpParent->children().size());
|
||||
}
|
||||
|
||||
if (!m_tmpParent->entries().isEmpty()) {
|
||||
qWarning("KeePass2XmlReader::readDatabase: found %d invalid entry reference(s)",
|
||||
m_tmpParent->children().size());
|
||||
}
|
||||
}
|
||||
|
||||
delete m_tmpParent;
|
||||
|
Loading…
Reference in New Issue
Block a user