sectionsd.cpp:sort unique search-eventlist (fix)

This commit is contained in:
satbaby
2012-05-11 12:21:43 +02:00
parent a227ef5f6d
commit 37a3480006

View File

@@ -2244,12 +2244,12 @@ void sectionsd_getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEventL
else if ( serviceIDfound ) else if ( serviceIDfound )
break; // sind nach serviceID und startzeit sortiert -> nicht weiter suchen 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); sort(eList.begin(),eList.end(),sortByDateTime);
unique(eList.begin(),eList.end(),sortbyEventid); unique(eList.begin(),eList.end(),sortbyEventid);
eList.erase(unique(eList.begin(),eList.end(),sortbyEventid),eList.end()); eList.erase(unique(eList.begin(),eList.end(),sortbyEventid),eList.end());
} }
unlockEvents();
} }
} }