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

Update certificate lineedit if the selected group was removed

GnuPG-bug-id: 5175, 5239
parent 1df94075
Pipeline #51442 passed with stage
in 17 minutes and 28 seconds
...@@ -122,6 +122,13 @@ CertificateLineEdit::CertificateLineEdit(AbstractKeyListModel *model, ...@@ -122,6 +122,13 @@ CertificateLineEdit::CertificateLineEdit(AbstractKeyListModel *model,
QLatin1String("<br/>") + i18n("Click for details.")); QLatin1String("<br/>") + i18n("Click for details."));
} }
}); });
connect(KeyCache::instance().get(), &Kleo::KeyCache::groupRemoved,
this, [this] (const KeyGroup &group) {
if (!mGroup.isNull() && mGroup.source() == group.source() && mGroup.id() == group.id()) {
// queue the update to ensure that the model has been updated
QMetaObject::invokeMethod(this, &CertificateLineEdit::updateKey, Qt::QueuedConnection);
}
});
connect(this, &QLineEdit::editingFinished, connect(this, &QLineEdit::editingFinished,
this, &CertificateLineEdit::editFinished); this, &CertificateLineEdit::editFinished);
connect(this, &QLineEdit::textChanged, 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