Verified Commit 3e8472b5 authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Ingo Klöcker
Browse files

Make the Certificate Dump dialog a child of its parent dialog

This ensures that the Certificate Dump dialog is shown above all of its
parents and can be interacted with if one of the parents is a modal
dialog (like the Edit Group dialog).

GnuPG-bug-id: 6180
parent c19d2736
......@@ -270,6 +270,7 @@ void DumpCertificateCommand::doStart()
if (d->useDialog) {
d->dialog = new DumpCertificateDialog;
d->applyWindowID(d->dialog);
d->dialog->setAttribute(Qt::WA_DeleteOnClose);
d->dialog->setWindowTitle(i18nc("@title:window", "Certificate Dump"));
......
......@@ -868,6 +868,7 @@ void CertificateDetailsWidget::Private::showMoreDetails()
ui.moreDetailsBtn->setEnabled(false);
if (key.protocol() == GpgME::CMS) {
auto cmd = new Kleo::Commands::DumpCertificateCommand(key);
cmd->setParentWidget(q);
connect(cmd, &Kleo::Commands::DumpCertificateCommand::finished,
q, [this]() {
ui.moreDetailsBtn->setEnabled(true);
......
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