diff options
Diffstat (limited to 'menu_searchresults.c')
-rw-r--r-- | menu_searchresults.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/menu_searchresults.c b/menu_searchresults.c index 81d5cf2..aa6d115 100644 --- a/menu_searchresults.c +++ b/menu_searchresults.c @@ -188,7 +188,9 @@ void cMenuSearchResultsItem::SetMenuItem(cSkinDisplayMenu *DisplayMenu, int Inde { #if APIVERSNUM >= 10733 cChannel *channel = event?Channels.GetByChannelID(event->ChannelID(), true, true):NULL; - if (!DisplayMenu->SetItemEvent(event, Index, Current, Selectable, channel, true, timerMatch)) + if (!event) + DisplayMenu->SetItem(Text(), Index, Current, Selectable); + else if (!DisplayMenu->SetItemEvent(event, Index, Current, Selectable, channel, true, timerMatch)) DisplayMenu->SetItem(Text(), Index, Current, Selectable); #endif } @@ -748,6 +750,9 @@ bool cMenuSearchResultsForQuery::BuildList() cMenuSearchResultsForRecs::cMenuSearchResultsForRecs(const char *query) :cMenuSearchResultsForQuery(NULL) { +#if VDRVERSNUM >= 10728 + SetMenuCategory(mcCommand); +#endif SetTitle(tr("found recordings")); if (query) { |