From f11b1c4fdfe3fcf4d7b71ad1b31fabd90112ded7 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Mon, 6 Nov 2017 11:48:38 +0100 Subject: [PATCH] Minor --- src/kmmainwidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kmmainwidget.cpp b/src/kmmainwidget.cpp index 7f0497102..1531dcce5 100644 --- a/src/kmmainwidget.cpp +++ b/src/kmmainwidget.cpp @@ -3750,8 +3750,7 @@ void KMMainWidget::updateMessageActionsDelayed() // "Print" will act on the current message: it will ignore any hidden selection mMsgActions->printAction()->setEnabled(singleVisibleMessageSelected); // "Print preview" will act on the current message: it will ignore any hidden selection - QAction *printPreviewAction = mMsgActions->printPreviewAction(); - if (printPreviewAction) { + if (QAction *printPreviewAction = mMsgActions->printPreviewAction()) { printPreviewAction->setEnabled(singleVisibleMessageSelected); }