diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-11-06 09:44:58 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-11-06 09:44:58 +0100 |
commit | ff6441939659d17765fcda9aec361b39b7fc972a (patch) | |
tree | 3393f1d56c234923d716dc06712aee8b5a065dec /menu.c | |
parent | 27ab07e80d2855b63e2d1df700bc307699fed6fb (diff) | |
download | vdr-ff6441939659d17765fcda9aec361b39b7fc972a.tar.gz vdr-ff6441939659d17765fcda9aec361b39b7fc972a.tar.bz2 |
Fixed setting the help key display in the Recordings menu in case of several layers of subdirectories
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.375 2005/10/09 11:22:03 kls Exp $ + * $Id: menu.c 1.376 2005/11/05 17:29:22 kls Exp $ */ #include "menu.h" @@ -1546,14 +1546,13 @@ void cMenuRecordingItem::IncrementCounter(bool New) // --- cMenuRecordings ------------------------------------------------------- -int cMenuRecordings::helpKeys = -1; - cMenuRecordings::cMenuRecordings(const char *Base, int Level, bool OpenSubMenus) :cOsdMenu(Base ? Base : tr("Recordings"), 8, 6) { base = Base ? strdup(Base) : NULL; level = Setup.RecordingDirs ? Level : -1; Recordings.StateChanged(recordingsState); // just to get the current state + helpKeys = -1; Display(); // this keeps the higher level menus from showing up briefly when pressing 'Back' during replay Set(); if (Current() < 0) @@ -1573,7 +1572,7 @@ cMenuRecordings::~cMenuRecordings() void cMenuRecordings::SetHelpKeys(void) { cMenuRecordingItem *ri = (cMenuRecordingItem *)Get(Current()); - int NewHelpKeys = helpKeys; + int NewHelpKeys = 0; if (ri) { if (ri->IsDirectory()) NewHelpKeys = 1; |