diff options
author | Christian Wieninger <cwieninger@gmx.de> | 2013-02-09 12:57:35 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger@gmx.de> | 2013-02-09 12:57:35 +0100 |
commit | 96ad8dfe294c36cc1191faf94fa90585c989f4e4 (patch) | |
tree | 6ec41abf04b723c42363e7cf173b7c5b02991e5b /menu_searchresults.c | |
parent | 16a0cdf7efdebed529371c84cc3d4c5359d85ab0 (diff) | |
download | vdr-plugin-epgsearch-96ad8dfe294c36cc1191faf94fa90585c989f4e4.tar.gz vdr-plugin-epgsearch-96ad8dfe294c36cc1191faf94fa90585c989f4e4.tar.bz2 |
patch from louis ( http://www.vdr-portal.de/board1-news/board2-vdr-news/p1124878-announce-nopacity-0-0-5/#post1124878 )
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) { |