Commit cce3f38c authored by Felix Tiede's avatar Felix Tiede Committed by Ingo Klöcker
Browse files

Evaluate error of mail creation job.

See !16 (comment 427785)

The result signal of the mail creation job is connected to a lambda
method producing an error notification if, and only if, the job sets its
error() value to something other than 0.
parent ea9549c3
......@@ -108,6 +108,15 @@ void ExportOpenPGPCertToProviderCommand::postSuccessHook(QWidget *parent)
connect(job, &MailTransport::MessageQueueJob::result, this, [this](const KJob *mailJob) {
if (mailJob->error()) {
KMessageBox::error((QWidget *) mailJob->parent(),
"<para>An error occurred when creating the mail to publish key:</para>"
"<para>%1</para>", mailJob->errorString()),
i18nc("@title:window", "OpenPGP Certificate Export"));
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