Commit 795edcf2 authored by Laurent Montel's avatar Laurent Montel 😁

Print action is always created

parent 54569ef1
......@@ -2795,17 +2795,12 @@ void KMMainWidget::showMessagePopup(const Akonadi::Item &msg, const QUrl &url, c
}
menu->addSeparator();
#ifdef MESSAGEVIEWER_USE_QTWEBENGINE
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
if (mMsgActions->printPreviewAction()) {
menu->addAction(mMsgActions->printPreviewAction());
}
menu->addAction(mMsgActions->printPreviewAction());
menu->addAction(mMsgActions->printAction());
#endif
#else
if (mMsgActions->printPreviewAction()) {
menu->addAction(mMsgActions->printPreviewAction());
}
menu->addAction(mMsgActions->printPreviewAction());
menu->addAction(mMsgActions->printAction());
#endif
menu->addAction(mSaveAsAction);
......
......@@ -621,15 +621,11 @@ void KMReaderMainWin::showMessagePopup(const Akonadi::Item &msg, const QUrl &url
#ifdef MESSAGEVIEWER_USE_QTWEBENGINE
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
if (mMsgActions->printPreviewAction()) {
menu->addAction(mMsgActions->printPreviewAction());
}
menu->addAction(mMsgActions->printPreviewAction());
menu->addAction(mMsgActions->printAction());
#endif
#else
if (mMsgActions->printPreviewAction()) {
menu->addAction(mMsgActions->printPreviewAction());
}
menu->addAction(mMsgActions->printPreviewAction());
menu->addAction(mMsgActions->printAction());
#endif
menu->addAction(mReaderWin->saveAsAction());
......
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