Commit 94474eec authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Optionally, include the groups from the key cache in the key list model

GnuPG-bug-id: 5175, 5249
parent dde08a33
......@@ -43,7 +43,8 @@ namespace KeyList
enum Options {
AllKeys,
SecretKeysOnly
SecretKeysOnly,
IncludeGroups
};
}
}
......
......@@ -83,6 +83,9 @@ void AbstractKeyListModel::Private::updateFromKeyCache()
{
if (m_useKeyCache) {
q->setKeys(m_keyListOptions == SecretKeysOnly ? KeyCache::instance()->secretKeys() : KeyCache::instance()->keys());
if (m_keyListOptions == IncludeGroups) {
q->setGroups(KeyCache::instance()->groups());
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment