made order of search timer list case insensitive

This commit is contained in:
louis 2014-02-08 09:57:14 +01:00
parent dad778ee7b
commit 490beed385
3 changed files with 5 additions and 2 deletions

View File

@ -129,3 +129,4 @@ Version 1.2.0
red key. red key.
- Added possibility to create a recording from search timer result list - Added possibility to create a recording from search timer result list
- Set minimum time to display in Plugin Setup from 120 to 60 minutes - Set minimum time to display in Plugin Setup from 120 to 60 minutes
- made order of search timer list case insensitive

View File

@ -73,7 +73,9 @@ cTVGuideSearchTimer::~cTVGuideSearchTimer(void) {
bool cTVGuideSearchTimer::operator < (const cTVGuideSearchTimer& other) const { bool cTVGuideSearchTimer::operator < (const cTVGuideSearchTimer& other) const {
std::string searchStringOther = other.SearchString(); std::string searchStringOther = other.SearchString();
int comp = searchString.compare(searchStringOther); searchStringOther = StrToLowerCase(searchStringOther);
std::string thisSearchString = StrToLowerCase(searchString);
int comp = thisSearchString.compare(searchStringOther);
if (comp < 0) if (comp < 0)
return true; return true;
return false; return false;

View File

@ -26,7 +26,7 @@
#error "VDR-2.0.0 API version or greater is required!" #error "VDR-2.0.0 API version or greater is required!"
#endif #endif
static const char *VERSION = "1.2.1pre"; static const char *VERSION = "1.2.1";
static const char *DESCRIPTION = "A fancy 2d EPG Viewer"; static const char *DESCRIPTION = "A fancy 2d EPG Viewer";
static const char *MAINMENUENTRY = "Tvguide"; static const char *MAINMENUENTRY = "Tvguide";