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
match.
parent 7400e2cf
......@@ -167,6 +167,9 @@ void CertificateLineEdit::updateKey()
if (mEditFinished) {
mLineAction->setIcon(QIcon::fromTheme(QStringLiteral("question")).pixmap(KIconLoader::SizeSmallMedium));
mLineAction->setToolTip(i18n("Multiple certificates"));
} else {
mLineAction->setIcon(QIcon::fromTheme(QStringLiteral("resource-group-new")));
mLineAction->setToolTip(i18n("Open selection dialog."));
}
} else if (mFilterModel->rowCount() == 1) {
newKey = mFilterModel->data(mFilterModel->index(0, 0), KeyListModelInterface::KeyRole).value<Key>();
......
Markdown is supported
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