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
remotes/origin/Applications/15.08 v15.08.0
Tobias Koenig 11 years ago committed by Albert Astals Cid
parent 48d20f2117
commit b683889c3a
  1. 6
      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;
}
}

Loading…
Cancel
Save