summaryrefslogtreecommitdiff
path: root/menu_conflictcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu_conflictcheck.c')
-rw-r--r--menu_conflictcheck.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/menu_conflictcheck.c b/menu_conflictcheck.c
index e901da8..45fa0c4 100644
--- a/menu_conflictcheck.c
+++ b/menu_conflictcheck.c
@@ -227,9 +227,12 @@ void cMenuConflictCheckDetails::SetHelpKeys()
{
cConflictCheckTimerObj* curTimerObj = CurrentTimerObj();
bool hasTimer = true;
- if (curTimerObj)
+ bool hasEvent = false;
+ if (curTimerObj)
+ {
hasTimer = curTimerObj->timer->HasFlags(tfActive);
- bool hasEvent = curTimerObj->Event();
+ hasEvent = curTimerObj->Event();
+ }
SetHelp(hasEvent?tr("Button$Repeats"):NULL, trVDR("Button$On/Off"), hasTimer?trVDR("Button$Delete"):NULL, tr("Button$Commands"));
}