Skip to content

Commit

Permalink
Merge pull request xbmc#6323 from AlwinEsch/channel-manager-fix-3
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins4kodi committed Feb 7, 2015
2 parents 8ecc5b7 + ccfd912 commit 54b069d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xbmc/pvr/dialogs/GUIDialogPVRChannelManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ bool CGUIDialogPVRChannelManager::OnActionMove(const CAction &action)
}

if (iActionId == ACTION_MOVE_DOWN || iActionId == ACTION_MOVE_UP ||
iActionId == ACTION_PAGE_DOWN || iActionId == ACTION_PAGE_UP)
iActionId == ACTION_PAGE_DOWN || iActionId == ACTION_PAGE_UP ||
iActionId == ACTION_FIRST_PAGE || iActionId == ACTION_LAST_PAGE)
{
CGUIDialog::OnAction(action);
int iSelected = m_viewControl.GetSelectedItem();
Expand All @@ -114,7 +115,7 @@ bool CGUIDialogPVRChannelManager::OnActionMove(const CAction &action)
{
std::string strNumber;

bool bMoveUp = iActionId == ACTION_PAGE_UP || iActionId == ACTION_MOVE_UP;
bool bMoveUp = iActionId == ACTION_PAGE_UP || iActionId == ACTION_MOVE_UP || iActionId == ACTION_FIRST_PAGE;
unsigned int iLines = bMoveUp ? abs(m_iSelected - iSelected) : 1;
bool bOutOfBounds = bMoveUp ? m_iSelected <= 0 : m_iSelected >= m_channelItems->Size() - 1;
if (bOutOfBounds)
Expand Down

0 comments on commit 54b069d

Please sign in to comment.