Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
96c0e3ed
Commit
96c0e3ed
authored
Oct 14, 2019
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/editor/kmcomposerwin.cpp
View file @
96c0e3ed
...
...
@@ -2497,10 +2497,12 @@ void KMComposerWin::printComposeResult(KJob *job, bool preview)
void
KMComposerWin
::
doSend
(
MessageComposer
::
MessageSender
::
SendMethod
method
,
MessageComposer
::
MessageSender
::
SaveIn
saveIn
,
bool
willSendItWithoutReediting
)
{
const
MessageComposer
::
ComposerViewBase
::
MissingAttachment
forgotAttachment
=
userForgotAttachment
();
if
((
forgotAttachment
==
MessageComposer
::
ComposerViewBase
::
FoundMissingAttachmentAndAddedAttachment
)
||
(
forgotAttachment
==
MessageComposer
::
ComposerViewBase
::
FoundMissingAttachmentAndCancel
))
{
return
;
if
(
saveIn
==
MessageComposer
::
MessageSender
::
SaveInNone
)
{
const
MessageComposer
::
ComposerViewBase
::
MissingAttachment
forgotAttachment
=
userForgotAttachment
();
if
((
forgotAttachment
==
MessageComposer
::
ComposerViewBase
::
FoundMissingAttachmentAndAddedAttachment
)
||
(
forgotAttachment
==
MessageComposer
::
ComposerViewBase
::
FoundMissingAttachmentAndCancel
))
{
return
;
}
}
//TODO generate new message from plugins.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment