eventlist: Use selected event title as default search word, patch by Gaucho316: http://www.dbox2-tuning.net/forum/viewtopic.php?p=382712#p382712

This commit is contained in:
rhabarber1848
2012-04-25 18:23:27 +00:00
committed by Jacek Jendrzej
parent 35444cb703
commit f6413891b2
2 changed files with 7 additions and 0 deletions

View File

@@ -1016,6 +1016,12 @@ bool CNeutrinoEventList::findEvents(void)
int event = 0; int event = 0;
t_channel_id channel_id = 0; t_channel_id channel_id = 0;
if((m_search_keyword.empty() || m_search_keyword == m_search_autokeyword) && evtlist[selected].eventID != 0)
{
m_search_keyword = evtlist[selected].description;
m_search_autokeyword = m_search_keyword;
}
CEventFinderMenu menu( &event, CEventFinderMenu menu( &event,
&m_search_epg_item, &m_search_epg_item,
&m_search_keyword, &m_search_keyword,

View File

@@ -67,6 +67,7 @@ class CNeutrinoEventList
private: private:
int m_search_epg_item; int m_search_epg_item;
std::string m_search_keyword; std::string m_search_keyword;
std::string m_search_autokeyword;
int m_search_list; int m_search_list;
t_channel_id m_search_channel_id; t_channel_id m_search_channel_id;
t_bouquet_id m_search_bouquet_id; t_bouquet_id m_search_bouquet_id;