summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-03-12 16:46:45 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-03-12 16:46:45 +0100
commit84b386c4a10dc80202258ecdb09ab2451ba3fb47 (patch)
tree3b999d4a10fa240a53b83bed7dd440582318ae26 /menu.c
parent6564d8e9284a8319fa75e814cd9c7206c4a026d5 (diff)
downloadvdr-84b386c4a10dc80202258ecdb09ab2451ba3fb47.tar.gz
vdr-84b386c4a10dc80202258ecdb09ab2451ba3fb47.tar.bz2
The new setup option "Folders in timer menu" controls whether the file names in the timer menu are shown with their full folder path1.7.14
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 2d983aea..e3b49cee 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 2.20 2010/03/07 14:08:15 kls Exp $
+ * $Id: menu.c 2.21 2010/03/12 16:03:07 kls Exp $
*/
#include "menu.h"
@@ -1052,7 +1052,7 @@ void cMenuTimerItem::Set(void)
strftime(buffer, sizeof(buffer), "%Y%m%d", &tm_r);
day = buffer;
}
- const char *File = strrchr(timer->File(), FOLDERDELIMCHAR);
+ const char *File = Setup.FoldersInTimerMenu ? NULL : strrchr(timer->File(), FOLDERDELIMCHAR);
if (File && strcmp(File + 1, TIMERMACRO_TITLE) && strcmp(File + 1, TIMERMACRO_EPISODE))
File++;
else
@@ -2567,6 +2567,7 @@ void cMenuSetupOSD::Set(void)
Add(new cMenuEditBoolItem(tr("Setup.OSD$Scroll wraps"), &data.MenuScrollWrap));
Add(new cMenuEditBoolItem(tr("Setup.OSD$Menu key closes"), &data.MenuKeyCloses));
Add(new cMenuEditBoolItem(tr("Setup.OSD$Recording directories"), &data.RecordingDirs));
+ Add(new cMenuEditBoolItem(tr("Setup.OSD$Folders in timer menu"), &data.FoldersInTimerMenu));
SetCurrent(Get(current));
Display();
}