Commit 709fb9a0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Disable export to pdf when we don't have message

parent 6f33c204
Pipeline #58157 passed with stage
in 22 minutes and 40 seconds
...@@ -371,7 +371,7 @@ void MessageActions::updateActions() ...@@ -371,7 +371,7 @@ void MessageActions::updateActions()
mPrintAction->setEnabled(mMessageView != nullptr); mPrintAction->setEnabled(mMessageView != nullptr);
mPrintPreviewAction->setEnabled(mMessageView != nullptr); mPrintPreviewAction->setEnabled(mMessageView != nullptr);
mExportToPdfAction->setEnabled(uniqItem);
if (mCurrentItem.hasPayload<KMime::Message::Ptr>()) { if (mCurrentItem.hasPayload<KMime::Message::Ptr>()) {
if (mCurrentItem.loadedPayloadParts().contains("RFC822")) { if (mCurrentItem.loadedPayloadParts().contains("RFC822")) {
updateMailingListActions(mCurrentItem); updateMailingListActions(mCurrentItem);
......
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