diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-03-09 11:51:08 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-03-09 11:51:08 +0100 |
commit | cc306290da581eaf95d0ba18347d16e270d24b67 (patch) | |
tree | e4d2403158ab07be4dbd6761feee1b81c8b124df /menu.c | |
parent | eb7816259c5c3b37e9c4802a285f717c57591bec (diff) | |
download | vdr-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |