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

Update updated group in certificate lineedit

GnuPG-bug-id: 5175, 5239
parent d736c350
Pipeline #50260 passed with stage
in 17 minutes and 35 seconds
......@@ -110,6 +110,18 @@ CertificateLineEdit::CertificateLineEdit(AbstractKeyListModel *model,
connect(KeyCache::instance().get(), &Kleo::KeyCache::keyListingDone,
this, &CertificateLineEdit::updateKey);
connect(KeyCache::instance().get(), &Kleo::KeyCache::groupUpdated,
this, [this] (const KeyGroup &group) {
if (group.id() == mGroup.id()) {
QSignalBlocker blocky(this);
mGroup = group;
setText(Formatting::summaryLine(mGroup));
setToolTip(Formatting::toolTip(mGroup, Formatting::ToolTipOption::AllOptions));
mLineAction->setIcon(Formatting::validityIcon(mGroup));
mLineAction->setToolTip(Formatting::validity(mGroup) +
QLatin1String("<br/>") + i18n("Click for details."));
}
});
connect(this, &QLineEdit::editingFinished,
this, &CertificateLineEdit::editFinished);
connect(this, &QLineEdit::textChanged,
......
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