From 37a3480006bbe222e82516f04d344b580ae14b07 Mon Sep 17 00:00:00 2001 From: satbaby Date: Fri, 11 May 2012 12:21:43 +0200 Subject: [PATCH] sectionsd.cpp:sort unique search-eventlist (fix) --- src/eitd/sectionsd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index 056a05d5f..2ded0b95b 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -2244,12 +2244,12 @@ void sectionsd_getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEventL else if ( serviceIDfound ) break; // sind nach serviceID und startzeit sortiert -> nicht weiter suchen } - if(!eList.empty()){ + unlockEvents(); + if(!search_text.empty() && !eList.empty()){ sort(eList.begin(),eList.end(),sortByDateTime); unique(eList.begin(),eList.end(),sortbyEventid); eList.erase(unique(eList.begin(),eList.end(),sortbyEventid),eList.end()); } - unlockEvents(); } }