summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-03-09 11:51:08 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-03-09 11:51:08 +0100
commitcc306290da581eaf95d0ba18347d16e270d24b67 (patch)
treee4d2403158ab07be4dbd6761feee1b81c8b124df /menu.c
parenteb7816259c5c3b37e9c4802a285f717c57591bec (diff)
downloadvdr-cc306290da581eaf95d0ba18347d16e270d24b67.tar.gz
vdr-cc306290da581eaf95d0ba18347d16e270d24b67.tar.bz2
The Setup/CAM menu now displays which device an individual CAM is currently assigned to
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index ae61c64d..2b812dec 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 3.48 2015/02/10 12:37:06 kls Exp $
+ * $Id: menu.c 4.1 2015/03/09 11:50:26 kls Exp $
*/
#include "menu.h"
@@ -3507,6 +3507,7 @@ cMenuSetupCAMItem::cMenuSetupCAMItem(cCamSlot *CamSlot)
bool cMenuSetupCAMItem::Changed(void)
{
+ cString AssignedDevice("");
const char *Activating = "";
const char *CamName = camSlot->GetCamName();
if (!CamName) {
@@ -3520,7 +3521,9 @@ bool cMenuSetupCAMItem::Changed(void)
else if (camSlot->IsActivating())
// TRANSLATORS: note the leading blank!
Activating = tr(" (activating)");
- cString buffer = cString::sprintf(" %d %s%s", camSlot->SlotNumber(), CamName, Activating);
+ if (cDevice *Device = camSlot->Device())
+ AssignedDevice = cString::sprintf(" %s %d", tr("@ device"), Device->CardIndex() + 1);
+ cString buffer = cString::sprintf(" %d %s%s%s", camSlot->SlotNumber(), CamName, *AssignedDevice, Activating);
if (strcmp(buffer, Text()) != 0) {
SetText(buffer);
return true;