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

Filter certificate list with current text of input field

This way only certificates matching the entered text are shown initially
when the user opens the certificate list from the recipient key input
field.

GnuPG-bug-id: 5845
parent 73e8c9b2
...@@ -331,6 +331,7 @@ void SignEncryptWidget::certificateSelectionRequested(CertificateLineEdit *certi ...@@ -331,6 +331,7 @@ void SignEncryptWidget::certificateSelectionRequested(CertificateLineEdit *certi
CertificateSelectionDialog::EncryptOnly | CertificateSelectionDialog::EncryptOnly |
CertificateSelectionDialog::optionsFromProtocol(mCurrentProto) | CertificateSelectionDialog::optionsFromProtocol(mCurrentProto) |
CertificateSelectionDialog::IncludeGroups)); CertificateSelectionDialog::IncludeGroups));
dlg.setStringFilter(certificateLineEdit->text());
if (dlg.exec()) { if (dlg.exec()) {
const std::vector<Key> keys = dlg.selectedCertificates(); const std::vector<Key> keys = dlg.selectedCertificates();
......
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