From 2f58b854ed812d4bc348d56200f2d828e64130c1 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Wed, 11 Apr 2012 18:46:23 +0200 Subject: [PATCH] Print warning about invalid entry references. --- src/format/KeePass2XmlReader.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/format/KeePass2XmlReader.cpp b/src/format/KeePass2XmlReader.cpp index d00084ac4..3f6c0ea1d 100644 --- a/src/format/KeePass2XmlReader.cpp +++ b/src/format/KeePass2XmlReader.cpp @@ -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;