https://bugs.kde.org/show_bug.cgi?id=328311

--- Comment #3 from kolAflash <colafl...@gmx.net> ---
Did some debugging with KDbg. May this be the reason?


kdepim-4.12.1/messagecomposer/composer/keyresolver.cpp:1625
Method:
std::vector<GpgME::Key> Kleo::KeyResolver::selectKeys(
  const QString &person, const QString &msg, const std::vector<GpgME::Key>
&selectedKeys ) const
========
  keys.erase( std::remove_if( keys.begin(), keys.end(),
                              NotValidTrustedEncryptionKey ), // -= trusted?
                              keys.end() );
========

Maybe it should be like this instead?
========
  keys.erase( std::remove_if( keys.begin(), keys.end(),
                              NotValidTrustedEncryptionKey ), // -= trusted?
                              keys.end() );
========

Because the method is called from

kdepim-4.12.1/messagecomposer/composer/keyresolver.cpp:1696
========
return trustedOrConfirmed( selectKeys(...
========

The method "trustedOrConfirmed" already checks if the key is trusted and may
ask the user what to do. But if "selectKeys" erases the key this won't happen.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs

Reply via email to