xbmc/xbmc — pull request #5869 by xhaggi (2014-12-02 23:05:26+00:00)
Title: Pvr fix sync selected item

This is an attempt to fix the async selected item behavior reported at at http://trac.kodi.tv/ticket/15522

The root cause is related to an issue in CGUIEPGGridContainer::SetSelectedChannel() where we calculate the channel offset and relative channel index. If the index is less than the stored channel offset the wrong calculation is done and the wrong item is selected. This adds a new condition to fix that issue.

Furthermore i've changed CGUIWindowPVRGuide to use the getter/setter instead of access m_selectedItemPaths directly.