From f5eafe65226809c89b5e95f2dd4bb369fffc5e6d Mon Sep 17 00:00:00 2001 From: Florian Geyer Date: Sun, 28 Oct 2012 10:25:43 +0100 Subject: [PATCH] Assert that the tmp group has no children when import is finished. --- src/format/KeePass1Reader.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/format/KeePass1Reader.cpp b/src/format/KeePass1Reader.cpp index aa885ac3e..3ecf2332e 100644 --- a/src/format/KeePass1Reader.cpp +++ b/src/format/KeePass1Reader.cpp @@ -211,11 +211,7 @@ Database* KeePass1Reader::readDatabase(QIODevice* device, const QString& passwor } Q_ASSERT(m_tmpParent->children().isEmpty()); - - Q_FOREACH (Entry* entry, m_tmpParent->entries()) { - qWarning("Orphaned entry found, assigning to root group."); - entry->setGroup(m_db->rootGroup()); - } + Q_ASSERT(m_tmpParent->entries().isEmpty()); Q_FOREACH (Group* group, groups) { group->setUpdateTimeinfo(true);