Commit 17cb5946 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Not necessary to test if it's empty

parent c6c73fd8
......@@ -28,7 +28,6 @@
CreateForwardMessageJob::CreateForwardMessageJob(QObject *parent)
: QObject(parent)
, mMessageFactory(nullptr)
{
}
......@@ -51,9 +50,7 @@ void CreateForwardMessageJob::start()
mMessageFactory->setIdentityManager(KMKernel::self()->identityManager());
mMessageFactory->setFolderIdentity(MailCommon::Util::folderIdentity(mSettings.mItem));
mMessageFactory->setSelection(mSettings.mSelection);
if (!mSettings.mTemplate.isEmpty()) {
mMessageFactory->setTemplate(mSettings.mTemplate);
}
mMessageFactory->setTemplate(mSettings.mTemplate);
mMessageFactory->createForwardAsync();
}
......
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