diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2009-01-26 19:07:03 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2009-01-26 19:07:03 +0100 |
commit | 3f7d506918dd62b5dda2d559aa6f81efbb98fe5f (patch) | |
tree | f83214dc24768fc49194fba389f412f70d97976d | |
parent | 62cc40f937c3eb2d7cd14f57a25b1ce407f046bf (diff) | |
download | vdr-plugin-epgsearch-3f7d506918dd62b5dda2d559aa6f81efbb98fe5f.tar.gz vdr-plugin-epgsearch-3f7d506918dd62b5dda2d559aa6f81efbb98fe5f.tar.bz2 |
when deleting a search timer also delete corresponding entries in timersdone.conf
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | HISTORY.DE | 2 | ||||
-rw-r--r-- | menu_search.c | 2 | ||||
-rw-r--r-- | timerdone.c | 12 | ||||
-rw-r--r-- | timerdone.h | 1 |
5 files changed, 19 insertions, 0 deletions
@@ -28,6 +28,8 @@ new: search timer update to be interrupted. - the SVDRP command UPDS for triggering search timer updates has now a new option 'SCAN' that will execute an EPG scan before the search timer update actually starts. +- when deleting a search timer now its list of created timers is also cleared, + suggested by Sundararaj Reel fixes: - fixed a crash when pressing 'Ok' in an empty timers done menu - fixed a crash when using the progressbar and events with 0 duration exist, thanks @@ -30,6 +30,8 @@ neu: brechung eines Suchtimerupdates zu verhindern. - das SVDRP-Kommando UPDS zum Auslösen von Suchtimer-Updates hat nun eine neue Option 'SCAN' mit der vor dem eigentlichen Update noch ein EPG-Scan ausgeführt wird. +- beim Löschen eines Suchtimers wird nun auch dessen Liste erstellter Timer gelöscht, + vorgeschlagen von Sundararaj Reel fixes: - Absturz beim Drücken von 'Ok' in leerem Menü erledigter Timer behoben - Absturz bei Verwendung des Fortschrittsbalkens in Verbindung mit Sendungen diff --git a/menu_search.c b/menu_search.c index 11d2321..04661eb 100644 --- a/menu_search.c +++ b/menu_search.c @@ -32,6 +32,7 @@ The project's page is at http://winni.vdr-developer.org/epgsearch #include "recdone.h" #include "menu_searchedit.h" #include "menu_searchactions.h" +#include "timerdone.h" using namespace std; @@ -164,6 +165,7 @@ eOSState cMenuEPGSearchExt::Delete(void) SearchExts.Del(curSearchExt); SearchExts.Save(); RecsDone.RemoveSearchID(DelID); + TimersDone.RemoveEntriesOfSearch(DelID); cOsdMenu::Del(Current()); Display(); UpdateTitle(); diff --git a/timerdone.c b/timerdone.c index b57eeea..189f3b5 100644 --- a/timerdone.c +++ b/timerdone.c @@ -197,3 +197,15 @@ void cTimersDone::Update(const time_t Start, const time_t Stop, const cEvent* pE else Add(Timerdone); } + +void cTimersDone::RemoveEntriesOfSearch(const int SearchID) +{ + cTimerDone* timerdone = First(); + while (timerdone) + { + cTimerDone* timerdoneNext = Next(timerdone); + if (timerdone->searchID == SearchID) + Del(timerdone); + timerdone = timerdoneNext; + } +} diff --git a/timerdone.h b/timerdone.h index 8dbc64c..70b42b9 100644 --- a/timerdone.h +++ b/timerdone.h @@ -55,6 +55,7 @@ class cTimersDone : public cConfig<cTimerDone>, public cMutex { cTimerDone* InList(const time_t Start, const time_t Stop, const cEvent* pEvent, const int SearchID); void Update(const time_t Start, const time_t Stop, const cEvent* pEvent, const int SearchID, cTimerDone* timerdone); void ClearOutdated(void); + void RemoveEntriesOfSearch(const int SearchID); }; extern cTimersDone TimersDone; |