diff options
Diffstat (limited to 'epgelement.c')
-rw-r--r-- | epgelement.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/epgelement.c b/epgelement.c index 8990d60..d0fa0c4 100644 --- a/epgelement.c +++ b/epgelement.c @@ -5,6 +5,7 @@ cEpgElement::cEpgElement(const cEvent *event, cChannelEpg *owner) : cGridElement(owner) { this->event = event; hasTimer = false; + timerIsActive = false; SetTimer(); hasSwitchTimer = false; SetSwitchTimer(); @@ -25,9 +26,11 @@ void cEpgElement::SetTimer() { } else { eTimerMatch TimerMatch = tmNone; LOCK_TIMERS_READ; - const cTimers *timers = Timers; - if (timers->GetMatch(event, &TimerMatch) && (TimerMatch == tmFull)) + const cTimer *timer = Timers->GetMatch(event, &TimerMatch); + if (TimerMatch == tmFull) { hasTimer = true; + timerIsActive = timer->HasFlags(tfActive); + } #else } else if (owner->HasTimer()) { hasTimer = event->HasTimer(); |