mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
don't abort import if there are entries with invalid groups,
log it and assign them to the root-group
This commit is contained in:
parent
22655e67ff
commit
00908856c3
@ -192,9 +192,11 @@ Database* KeePass1Reader::readDatabase(QIODevice* device, const QString& passwor
|
||||
else {
|
||||
quint32 groupId = m_entryGroupIds.value(entry);
|
||||
if (!m_groupIds.contains(groupId)) {
|
||||
return Q_NULLPTR;
|
||||
qWarning("Orphaned entry found, assigning to root group.");
|
||||
entry->setGroup(m_db->rootGroup());
|
||||
} else {
|
||||
entry->setGroup(m_groupIds.value(groupId));
|
||||
}
|
||||
entry->setGroup(m_groupIds.value(groupId));
|
||||
entry->setUuid(Uuid::random());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user