Disable searching and auto-type for the Backup group imported from KeePass1.

This commit is contained in:
Felix Geyer 2012-07-23 13:21:17 +02:00
parent 7820bf2510
commit fcc936ceff

View File

@ -201,6 +201,13 @@ Database* KeePass1Reader::readDatabase(QIODevice* device, const QString& passwor
db->rootGroup()->setName(tr("Root")); db->rootGroup()->setName(tr("Root"));
Q_FOREACH (Group* group, db->rootGroup()->children()) {
if (group->name() == "Backup") {
group->setSearchingEnabled(Group::Disable);
group->setAutoTypeEnabled(Group::Disable);
}
}
Q_ASSERT(m_tmpParent->children().isEmpty()); Q_ASSERT(m_tmpParent->children().isEmpty());
Q_FOREACH (Entry* entry, m_tmpParent->entries()) { Q_FOREACH (Entry* entry, m_tmpParent->entries()) {