mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
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
This commit is contained in:
parent
4954395d08
commit
08a76adda1
1 changed files with 1 additions and 1 deletions
2
part.cpp
2
part.cpp
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue