From b683889c3ad3cd64500e7b3ba53d0da50508bb09 Mon Sep 17 00:00:00 2001 From: Tobias Koenig Date: Wed, 12 Aug 2015 22:42:00 +0200 Subject: [PATCH] Fix play back of video with rendition link Process the operations of the rendition link independently of whether there is a JS script or not. Most of the time the JS script won't be executed correctly anyway, since Okular is missing most of the JS API, so we should fall back on the given operations. BUGS: 324167 FIXED-IN: KDE Applications 15.08.0 --- core/document.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/document.cpp b/core/document.cpp index 836f2fd94..7247342a7 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -3998,10 +3998,8 @@ void Document::processAction( const Action * action ) d->m_scripter = new Scripter( d ); d->m_scripter->execute( linkrendition->scriptType(), linkrendition->script() ); } - else - { - emit processRenditionAction( static_cast< const RenditionAction * >( action ) ); - } + + emit processRenditionAction( static_cast< const RenditionAction * >( action ) ); } break; } }