Permalink
Browse files

Merge pull request #3494 from guyrichie/timer_context_m

XBMC-PVR: Add "Find similar programs" to Timers context menu
  • Loading branch information...
2 parents 27750d7 + 3d1f7c0 commit 7954dae1f2c9df9f81383f1ae5d7c91710b5101b Lars Op den Kamp committed Nov 11, 2013
Showing with 6 additions and 3 deletions.
  1. +2 −0 xbmc/pvr/windows/GUIWindowPVRCommon.cpp
  2. +4 −3 xbmc/pvr/windows/GUIWindowPVRTimers.cpp
@@ -867,6 +867,8 @@ bool CGUIWindowPVRCommon::OnContextButtonFind(CFileItem *item, CONTEXT_BUTTON bu
m_parent->m_windowSearch->m_searchfilter.m_strSearchTerm = "\"" + tag.Title() + "\"";
else if (item->IsPVRRecording())
m_parent->m_windowSearch->m_searchfilter.m_strSearchTerm = "\"" + item->GetPVRRecordingInfoTag()->m_strTitle + "\"";
+ else if (item->IsPVRTimer())
+ m_parent->m_windowSearch->m_searchfilter.m_strSearchTerm = "\"" + item->GetPVRTimerInfoTag()->m_strTitle + "\"";
m_parent->m_windowSearch->m_bSearchConfirmed = true;
m_parent->SetLabel(m_iControlButton, 0);
@@ -70,11 +70,12 @@ void CGUIWindowPVRTimers::GetContextButtons(int itemNumber, CContextButtons &but
}
else
{
- buttons.Add(CONTEXT_BUTTON_EDIT, 19057); /* edit timer */
- buttons.Add(CONTEXT_BUTTON_ADD, 19056); /* new timer */
+ buttons.Add(CONTEXT_BUTTON_FIND, 19003); /* Find similar program */
buttons.Add(CONTEXT_BUTTON_ACTIVATE, 19058); /* activate/deactivate */
- buttons.Add(CONTEXT_BUTTON_RENAME, 118); /* rename timer */
buttons.Add(CONTEXT_BUTTON_DELETE, 117); /* delete timer */
+ buttons.Add(CONTEXT_BUTTON_EDIT, 19057); /* edit timer */
+ buttons.Add(CONTEXT_BUTTON_RENAME, 118); /* rename timer */
+ buttons.Add(CONTEXT_BUTTON_ADD, 19056); /* new timer */
buttons.Add(CONTEXT_BUTTON_SORTBY_NAME, 103); /* sort by name */
buttons.Add(CONTEXT_BUTTON_SORTBY_DATE, 104); /* sort by date */
if (g_PVRClients->HasMenuHooks(pItem->GetPVRTimerInfoTag()->m_iClientId, PVR_MENUHOOK_TIMER))

0 comments on commit 7954dae

Please sign in to comment.