Commit 96c0e3ed authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 412895 - Attachment detector should not trigger while saving as draft

FIXED-IN: 5.12.3
BUG: 412895
parent ba4830eb
...@@ -2497,10 +2497,12 @@ void KMComposerWin::printComposeResult(KJob *job, bool preview) ...@@ -2497,10 +2497,12 @@ void KMComposerWin::printComposeResult(KJob *job, bool preview)
void KMComposerWin::doSend(MessageComposer::MessageSender::SendMethod method, MessageComposer::MessageSender::SaveIn saveIn, bool willSendItWithoutReediting) void KMComposerWin::doSend(MessageComposer::MessageSender::SendMethod method, MessageComposer::MessageSender::SaveIn saveIn, bool willSendItWithoutReediting)
{ {
const MessageComposer::ComposerViewBase::MissingAttachment forgotAttachment = userForgotAttachment(); if(saveIn == MessageComposer::MessageSender::SaveInNone) {
if ((forgotAttachment == MessageComposer::ComposerViewBase::FoundMissingAttachmentAndAddedAttachment) const MessageComposer::ComposerViewBase::MissingAttachment forgotAttachment = userForgotAttachment();
|| (forgotAttachment == MessageComposer::ComposerViewBase::FoundMissingAttachmentAndCancel)) { if ((forgotAttachment == MessageComposer::ComposerViewBase::FoundMissingAttachmentAndAddedAttachment)
return; || (forgotAttachment == MessageComposer::ComposerViewBase::FoundMissingAttachmentAndCancel)) {
return;
}
} }
//TODO generate new message from plugins. //TODO generate new message from plugins.
......
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