Skip to content

Commit

Permalink
Merge pull request #4732 from jmarshallnz/pvr_fixes
Browse files Browse the repository at this point in the history
PVR: A couple of fixes in guide search dialog
  • Loading branch information
jmarshallnz authored and Trent Nelson committed Jun 7, 2014
1 parent bb8300e commit dfdf3fa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions xbmc/pvr/dialogs/GUIDialogPVRGuideSearch.cpp
Expand Up @@ -71,7 +71,7 @@ void CGUIDialogPVRGuideSearch::UpdateChannelSpin(void)
if (!pSpin || !pSpinGroups)
return;

int iChannelGroup = pSpin->GetValue();
int iChannelGroup = pSpinGroups->GetValue();

pSpin->Clear();
pSpin->AddLabel(g_localizeStrings.Get(19217), EPG_SEARCH_UNSET);
Expand All @@ -92,6 +92,8 @@ void CGUIDialogPVRGuideSearch::UpdateChannelSpin(void)
int iChannelNumber = group->GetChannelNumber(*channel->GetPVRChannelInfoTag());
pSpin->AddLabel(channel->GetPVRChannelInfoTag()->ChannelName().c_str(), iChannelNumber);
}

pSpin->SetValue(m_searchFilter->m_iChannelNumber);
}

void CGUIDialogPVRGuideSearch::UpdateGroupsSpin(void)
Expand All @@ -103,6 +105,8 @@ void CGUIDialogPVRGuideSearch::UpdateGroupsSpin(void)
std::vector<CPVRChannelGroupPtr> group;
std::vector<CPVRChannelGroupPtr>::const_iterator it;

pSpin->Clear();

/* tv groups */
group = g_PVRChannelGroups->GetTV()->GetMembers();
for (it = group.begin(); it != group.end(); ++it)
Expand Down Expand Up @@ -342,13 +346,13 @@ void CGUIDialogPVRGuideSearch::Update()
pEdit = (CGUIEditControl *)GetControl(CONTROL_EDIT_START_TIME);
if (pEdit)
{
pEdit->SetLabel2(m_searchFilter->m_endDateTime.GetAsLocalizedTime("", false));
pEdit->SetLabel2(m_searchFilter->m_startDateTime.GetAsLocalizedTime("", false));
pEdit->SetInputType(CGUIEditControl::INPUT_TYPE_TIME, 14066);
}
pEdit = (CGUIEditControl *)GetControl(CONTROL_EDIT_STOP_TIME);
if (pEdit)
{
pEdit->SetLabel2(m_searchFilter->m_startDateTime.GetAsLocalizedTime("", false));
pEdit->SetLabel2(m_searchFilter->m_endDateTime.GetAsLocalizedTime("", false));
pEdit->SetInputType(CGUIEditControl::INPUT_TYPE_TIME, 14066);
}
pEdit = (CGUIEditControl *)GetControl(CONTROL_EDIT_START_DATE);
Expand Down

0 comments on commit dfdf3fa

Please sign in to comment.