mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Assert that the tmp group has no children when import is finished.
This commit is contained in:
parent
00908856c3
commit
f5eafe6522
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user