summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-12-10 13:04:38 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2017-12-10 13:04:38 +0100
commitea217de3380f6f8c322dd36eaf084045f4ae7fc3 (patch)
tree9fff52554ce83742f1f7435785a791869b46ea06 /menu.c
parent1492f6dbc4c237b750687a6c6dd41a0284a09229 (diff)
downloadvdr-ea217de3380f6f8c322dd36eaf084045f4ae7fc3.tar.gz
vdr-ea217de3380f6f8c322dd36eaf084045f4ae7fc3.tar.bz2
Now displaying recordings in move as non-selectable
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index dabd7be1..c41ac8b7 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 4.50 2017/12/09 14:14:46 kls Exp $
+ * $Id: menu.c 4.51 2017/12/10 12:50:23 kls Exp $
*/
#include "menu.h"
@@ -2877,8 +2877,13 @@ cMenuRecordingItem::cMenuRecordingItem(const cRecording *Recording, int Level)
name = NULL;
totalEntries = newEntries = 0;
SetText(Recording->Title('\t', true, Level));
- if (*Text() == '\t')
+ if (*Text() == '\t') // this is a folder
name = strdup(Text() + 2); // 'Text() + 2' to skip the two '\t'
+ else { // this is an actual recording
+ int Usage = Recording->IsInUse();
+ if ((Usage & ruDst) != 0 && (Usage & (ruMove | ruCopy)) != 0)
+ SetSelectable(false);
+ }
}
cMenuRecordingItem::~cMenuRecordingItem()