Don't show the attachment bar if showOSD is disabled

BUGS: 327203
FIXED-IN: 4.12.1
This commit is contained in:
Albert Astals Cid 2013-12-12 23:44:38 +01:00
parent 6c0299151f
commit 4d6c7ad5e3

View file

@ -1238,7 +1238,7 @@ bool Part::openFile()
m_showProperties->setEnabled( ok );
bool hasEmbeddedFiles = ok && m_document->embeddedFiles() && m_document->embeddedFiles()->count() > 0;
if ( m_showEmbeddedFiles ) m_showEmbeddedFiles->setEnabled( hasEmbeddedFiles );
m_topMessage->setVisible( hasEmbeddedFiles );
m_topMessage->setVisible( hasEmbeddedFiles && Okular::Settings::showOSD() );
// Warn the user that XFA forms are not supported yet (NOTE: poppler generator only)
if ( ok && m_document->metaData( "HasUnsupportedXfaForm" ).toBool() == true )