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

Fix indication of "Multiple certificates" if editing is finished

The two mEdit* flags were never reset and therefore updateKey() never
set icon/tooltip to indicate that multiple certificates match the
current text.
parent 6c003a0b
......@@ -105,7 +105,7 @@ CertificateLineEdit::CertificateLineEdit(AbstractKeyListModel *model,
connect(KeyCache::instance().get(), &Kleo::KeyCache::keyListingDone,
this, &CertificateLineEdit::updateKey);
connect(this, &QLineEdit::editingFinished,
this, &CertificateLineEdit::updateKey);
this, &CertificateLineEdit::editFinished);
connect(this, &QLineEdit::textChanged,
this, &CertificateLineEdit::editChanged);
connect(mLineAction, &QAction::triggered,
......@@ -129,6 +129,13 @@ void CertificateLineEdit::editChanged()
mEditFinished = false;
}
void CertificateLineEdit::editFinished()
{
mEditStarted = false;
mEditFinished = true;
updateKey();
}
void CertificateLineEdit::checkLocate()
{
if (!key().isNull()) {
......
......@@ -79,6 +79,7 @@ private Q_SLOTS:
void updateKey();
void dialogRequested();
void editChanged();
void editFinished();
void checkLocate();
private:
......
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