Commit 08a76add authored by Arshad Husain's avatar Arshad Husain Committed by Albert Astals Cid
Browse files

Do not show dialog when reloading file that requests fullscreen

When using Okular as previewer in PDFTex workflow, preparing beamer slides,
the following usability hell occurred:

* LaTex/Beamer slides should be compiled to PDF with metadata "StartFullScreen"
* But while editing, on every PDF change/and reload, the user gets a modal popup
  "The document requested to be launched in presentation mode." "Do you want to allow it?"

BUG: 361740
parent 4954395d
......@@ -1702,7 +1702,7 @@ bool Part::openFile()
// if the 'StartFullScreen' flag is set and we're not in viewer widget mode, or the command line flag was
// specified, start presentation
const bool presentationBecauseOfDocumentMetadata = ( m_embedMode != ViewerWidgetMode ) && m_document->metaData( QStringLiteral("StartFullScreen") ).toBool();
if ( presentationBecauseOfDocumentMetadata || m_cliPresentation )
if ( ( presentationBecauseOfDocumentMetadata || m_cliPresentation ) && !m_isReloading )
bool goAheadWithPresentationMode = true;
if ( !m_cliPresentation )
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