mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-05 11:54:59 -04:00
Print warning about invalid entry references.
This commit is contained in:
parent
cba8fd7e51
commit
2f58b854ed
1 changed files with 10 additions and 3 deletions
|
@ -49,11 +49,18 @@ void KeePass2XmlReader::readDatabase(QIODevice* device, Database* db, KeePass2Ra
|
|||
}
|
||||
}
|
||||
|
||||
if (!m_xml.error() && !m_tmpParent->children().isEmpty()) {
|
||||
qWarning("KeePass2XmlReader::readDatabase: found %d invalid entry references",
|
||||
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…
Add table
Add a link
Reference in a new issue