From a2b8bfaaa9b925a086db1645645a3a3174b0a9c6 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 7 Jul 2023 16:20:25 +0300 Subject: [PATCH] okular: do not show the forms message if form actions are not enabled was showing an empty message with two buttons at start when something to open was not specified, the check now matches the one done in Okular::Part::openFile() Signed-off-by: Ivailo Monev --- okular/part.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/okular/part.cpp b/okular/part.cpp index f76d2868..0a612b27 100644 --- a/okular/part.cpp +++ b/okular/part.cpp @@ -2709,7 +2709,7 @@ void Part::unsetDummyMode() // attach the actions of the children widgets too m_formsMessage->addAction( m_pageView->toggleFormsAction() ); - m_formsMessage->setVisible( m_pageView->toggleFormsAction() != 0 ); + m_formsMessage->setVisible( m_pageView->toggleFormsAction() != 0 && m_pageView->toggleFormsAction()->isEnabled() ); // ensure history actions are in the correct state updateViewActions(); -- 2.11.0