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

Simplify the filter setup

"bad" includes "revoked", "expired", and "disabled".
parent b0535c2b
......@@ -52,10 +52,7 @@ CertificationKeyFilter::CertificationKeyFilter(const GpgME::Key &certificationTa
setIsOpenPGP(DefaultKeyFilter::Set);
setHasSecret(DefaultKeyFilter::Set);
setCanCertify(DefaultKeyFilter::Set);
setRevoked(DefaultKeyFilter::NotSet);
setExpired(DefaultKeyFilter::NotSet);
setIsBad(DefaultKeyFilter::NotSet);
setDisabled(DefaultKeyFilter::NotSet);
}
bool CertificationKeyFilter::matches(const GpgME::Key &key, Kleo::KeyFilter::MatchContexts contexts) const
......
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