mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-15 02:21:46 -04:00
Assert that the tmp group has no children when import is finished.
This commit is contained in:
parent
00908856c3
commit
f5eafe6522
1 changed files with 1 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue