From fe47c95a54acadb3aede64ad038911b48b0d647e Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 16 Sep 2012 20:15:38 +0200 Subject: [PATCH] sectionsd.cpp:-fix search mode Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/324a4721f4acba70f22a90d8e1699c75d378c959 Author: Jacek Jendrzej Date: 2012-09-16 (Sun, 16 Sep 2012) --- src/eitd/sectionsd.cpp | 4 +++- src/gui/eventlist.cpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index 90ba4c097..412c860cd 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -2159,7 +2159,9 @@ void CEitManager::getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEve { dprintf("sendAllEvents for " PRINTF_CHANNEL_ID_TYPE "\n", serviceUniqueKey); - eList.clear(); + if(!eList.empty() && search == 0)//skip on search mode + eList.clear(); + t_channel_id serviceUniqueKey64 = serviceUniqueKey& 0xFFFFFFFFFFFFULL; //0xFFFFFFFFFFFFULL for CREATE_CHANNEL_ID64 if(serviceUniqueKey64 == 0) return; diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index 20afa9c3e..f0f2f5d21 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -1014,6 +1014,8 @@ bool CNeutrinoEventList::findEvents(void) { res = true; m_showChannel = true; // force the event list to paint the channel name + if(!evtlist.empty()) + evtlist.clear(); if(m_search_list == SEARCH_LIST_CHANNEL) { CEitManager::getInstance()->getEventsServiceKey(m_search_channel_id, evtlist, m_search_epg_item,m_search_keyword);