add: qDebug( "key validity is \"never\"" );
context: static bool checkKeyUsage( const GpgME::Key & key, unsigned int keyUsage ) {    if ( keyUsage & Kleo::KeySelectionDialog::ValidKeys )    if ( key.isInvalid() )      qDebug( "key is invalid - ignoring" );    if ( key.isExpired() ) {      //qDebug( "key is expired" );      return false;    } else if ( key.isRevoked() ) {      //qDebug( "key is revoked" );      return false;    } else if ( key.isDisabled() ) {      //qDebug( "key is disabled" );      return false;    }  if ( keyUsage & Kleo::KeySelectionDialog::EncryptionKeys &&       !key.canEncrypt() ) {    //qDebug( "key can's encrypt" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::SigningKeys &&       !key.canSign() ) {    //qDebug( "key can't sign" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::CertificationKeys &&       !key.canCertify() ) {    //qDebug( "key can't certify" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::AuthenticationKeys &&       !key.canAuthenticate() ) {    //qDebug( "key can't authenticate" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::SecretKeys &&       !( keyUsage & Kleo::KeySelectionDialog::PublicKeys ) &&       !key.isSecret() ) {    //qDebug( "key isn't secret" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::PublicKeys &&       !( keyUsage & Kleo::KeySelectionDialog::SecretKeys ) &&       key.isSecret() ) {    //qDebug( "key is secret" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::TrustedKeys &&       key.protocol() == GpgME::Context::OpenPGP )    switch ( key.userID(0).validity() ) {    case GpgME::UserID::Unknown:      //qDebug( "key validity is unknown" );      return false;    case GpgME::UserID::Undefined:      //qDebug( "key validity is undefined" );      return false;    case GpgME::UserID::Never:      //qDebug( "key validity is \"never\"" );      return false;    case GpgME::UserID::Marginal:    case GpgME::UserID::Full:    case GpgME::UserID::Ultimate:      ;    }  // X.509 keys are always trusted, else they won't be the keybox.  // PENDING(marc) check that this ^ is correct  return true;}