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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 37a3480006
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-05-11 (Fri, 11 May 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-05-11 12:21:43 +02:00
parent 3b5d797a32
commit 5a9a275571

View File

@@ -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();
}
}