From 490beed385054354bba92d0ffbd68621f79c9630 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 8 Feb 2014 09:57:14 +0100 Subject: [PATCH] made order of search timer list case insensitive --- HISTORY | 1 + searchtimer.c | 4 +++- tvguide.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 1d899e9..b38439f 100644 --- a/HISTORY +++ b/HISTORY @@ -129,3 +129,4 @@ Version 1.2.0 red key. - Added possibility to create a recording from search timer result list - Set minimum time to display in Plugin Setup from 120 to 60 minutes +- made order of search timer list case insensitive diff --git a/searchtimer.c b/searchtimer.c index 04601fb..7e9b4db 100644 --- a/searchtimer.c +++ b/searchtimer.c @@ -73,7 +73,9 @@ cTVGuideSearchTimer::~cTVGuideSearchTimer(void) { bool cTVGuideSearchTimer::operator < (const cTVGuideSearchTimer& other) const { 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) return true; return false; diff --git a/tvguide.c b/tvguide.c index 9f7d9d8..848026b 100644 --- a/tvguide.c +++ b/tvguide.c @@ -26,7 +26,7 @@ #error "VDR-2.0.0 API version or greater is required!" #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 *MAINMENUENTRY = "Tvguide";