Skip to content
GitLab
Menu
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
0b9a6539
Commit
0b9a6539
authored
Apr 15, 2021
by
Laurent Montel
😁
Browse files
Disable export to pdf when we don't have message
parent
45147a5c
Pipeline
#58156
passed with stage
in 13 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/messageactions.cpp
View file @
0b9a6539
...
...
@@ -362,7 +362,7 @@ void MessageActions::updateActions()
mPrintAction
->
setEnabled
(
mMessageView
!=
nullptr
);
mPrintPreviewAction
->
setEnabled
(
mMessageView
!=
nullptr
);
mExportToPdfAction
->
setEnabled
(
uniqItem
);
if
(
mCurrentItem
.
hasPayload
<
KMime
::
Message
::
Ptr
>
())
{
if
(
mCurrentItem
.
loadedPayloadParts
().
contains
(
"RFC822"
))
{
updateMailingListActions
(
mCurrentItem
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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