Commit 2962fdd7 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix SmtpJob emitting result() twice

Adding a KJob as a subjob of a KCompositeJob automatically connects
to its result() signal, so we shouldn't connect to it explicitly.

This fixes an assert in MailDispatcherAgent
parent 2b5c8810
...@@ -284,7 +284,6 @@ void SmtpJob::startSendJob() ...@@ -284,7 +284,6 @@ void SmtpJob::startSendJob()
send->setBcc(bcc()); send->setBcc(bcc());
send->setData(data()); send->setData(data());
connect(send, &KJob::result, this, &SmtpJob::slotResult);
addSubjob(send); addSubjob(send);
send->start(); send->start();
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