Commit 5cc79e92 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

make it possible to manually select untrusted PGP keys

Fixes a bug in method "selectKeys", when manually selecting one or more
keys which are not marked as trusted. Method "selectKeys" is only called
from method "getEncryptionKeys" in lines: 1656, 1696

(patch written by kolAflash <>, sponserd by me)

BUG: 328311
FIXED-IN: 4.12.2
REVIEW: 115182
parent 19c3e6a3
......@@ -1623,7 +1623,7 @@ std::vector<GpgME::Key> Kleo::KeyResolver::selectKeys(
std::vector<GpgME::Key> keys = dlg->selectedKeys();
keys.erase( std::remove_if( keys.begin(), keys.end(),
NotValidTrustedEncryptionKey ), // -= trusted?
NotValidEncryptionKey ),
keys.end() );
if ( !keys.empty() && dlg->rememberSelection() ) {
setKeysForAddress( person, dlg->pgpKeyFingerprints(), dlg->smimeFingerprints() );
Supports Markdown
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