From fcc936ceffe954d7b3f9719fd25e3c872607f7f8 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 23 Jul 2012 13:21:17 +0200 Subject: [PATCH] Disable searching and auto-type for the Backup group imported from KeePass1. --- src/format/KeePass1Reader.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/format/KeePass1Reader.cpp b/src/format/KeePass1Reader.cpp index 1e0f2e434..b74d08eeb 100644 --- a/src/format/KeePass1Reader.cpp +++ b/src/format/KeePass1Reader.cpp @@ -201,6 +201,13 @@ Database* KeePass1Reader::readDatabase(QIODevice* device, const QString& passwor 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_FOREACH (Entry* entry, m_tmpParent->entries()) {