summaryrefslogtreecommitdiff
path: root/epggrid.c
diff options
context:
space:
mode:
Diffstat (limited to 'epggrid.c')
-rw-r--r--epggrid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epggrid.c b/epggrid.c
index 9b6ef1a..d73cb20 100644
--- a/epggrid.c
+++ b/epggrid.c
@@ -155,9 +155,11 @@ void cEpgGrid::drawText() {
drawIcon("Switch", theme.Color(clrButtonYellow));
if (hasTimer) {
const cTimer *timer = NULL;
+ {
LOCK_TIMERS_READ;
timer = Timers->GetMatch(event);
- if (timer)
+ }
+ if (timer)
#ifdef USE_SWITCHONLY
if (timer->HasFlags(tfSwitchOnly))
drawIcon("Switch", theme.Color(clrButtonYellow));