OSDN Git Service

okular: do not show the forms message if form actions are not enabled
authorIvailo Monev <xakepa10@gmail.com>
Fri, 7 Jul 2023 13:20:25 +0000 (16:20 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Fri, 7 Jul 2023 13:21:29 +0000 (16:21 +0300)
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 <xakepa10@gmail.com>
okular/part.cpp

index f76d286..0a612b2 100644 (file)
@@ -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();