diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-06 18:22:24 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-07 12:56:53 +0200 |
commit | 6f7042d41f74f6ffc443f04cfffda0440b429da4 (patch) | |
tree | 75c27b2dabe696756914b8110e7428e03fdc46a2 /epggrid.c | |
parent | 9009f4f385f949f7337d0044efc32a69a0f558c9 (diff) | |
download | vdr-plugin-tvguide-6f7042d41f74f6ffc443f04cfffda0440b429da4.tar.gz vdr-plugin-tvguide-6f7042d41f74f6ffc443f04cfffda0440b429da4.tar.bz2 |
Correct an error with the recording sign in grid
Diffstat (limited to 'epggrid.c')
-rw-r--r-- | epggrid.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -62,22 +62,23 @@ void cEpgGrid::PositionPixmap() { }
void cEpgGrid::SetTimer() {
+ hasTimer = false;
if (tvguideConfig.useRemoteTimers && pRemoteTimers) {
RemoteTimers_Event_v1_0 rt;
rt.event = event;
if (pRemoteTimers->Service("RemoteTimers::GetTimerByEvent-v1.0", &rt))
hasTimer = true;
- else
- hasTimer = false;
-#if VDRVERSNUM >= 30400
- } else if (event->HasTimer()) {
- hasTimer = true;
+#if VDRVERSNUM >= 20301
+ } else {
+ eTimerMatch TimerMatch = tmNone;
+ LOCK_TIMERS_READ;
+ const cTimers *timers = Timers;
+ if (timers->GetMatch(event, &TimerMatch) && (TimerMatch == tmFull))
+ hasTimer = true;
#else
} else if (column->HasTimer()) {
hasTimer = event->HasTimer();
#endif
- } else {
- hasTimer = false;
}
}
|