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

Update line action in case of multiple matches after 0 or 1 match

When 0 or 1 certificates matched the entered text, then the line action
indicated this. But when, after further editing, multiple certificates
matched, then the line action was not updated and still indicated 0 or 1
parent 7400e2cf
......@@ -167,6 +167,9 @@ void CertificateLineEdit::updateKey()
if (mEditFinished) {
mLineAction->setToolTip(i18n("Multiple certificates"));
} else {
mLineAction->setToolTip(i18n("Open selection dialog."));
} else if (mFilterModel->rowCount() == 1) {
newKey = mFilterModel->data(mFilterModel->index(0, 0), KeyListModelInterface::KeyRole).value<Key>();
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