Skip to content

Commit

Permalink
Merge pull request xbmc#7656 from ksooo/jump-to-now-on-init-epg-grid-…
Browse files Browse the repository at this point in the history
…container

[EPG] Jump to 'now' on init of EPG timeline view
  • Loading branch information
ksooo committed Jul 29, 2015
2 parents 150c142 + 239f684 commit 8e4209f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xbmc/pvr/windows/GUIWindowPVRGuide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ void CGUIWindowPVRGuide::OnInitWindow()
if (m_guiState.get())
m_viewControl.SetCurrentView(m_guiState->GetViewAsControl(), false);

CGUIEPGGridContainer *epgGridContainer =
dynamic_cast<CGUIEPGGridContainer*>(GetControl(m_viewControl.GetCurrentControl()));
if (epgGridContainer)
epgGridContainer->GoToNow();

CGUIWindowPVRBase::OnInitWindow();
}

Expand Down

0 comments on commit 8e4209f

Please sign in to comment.