summaryrefslogtreecommitdiff
path: root/skins.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-05-20 13:55:34 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-05-20 13:55:34 +0200
commitcdaf99121bb31fff5e11765ab6ad5f61645134fd (patch)
tree151c78d955702988c87811ad628801dd29edbd88 /skins.c
parent2e393c6e1f2189357b375b9d12717798ff0c6de0 (diff)
downloadvdr-cdaf99121bb31fff5e11765ab6ad5f61645134fd.tar.gz
vdr-cdaf99121bb31fff5e11765ab6ad5f61645134fd.tar.bz2
If a recording has no info file, the 'title' of the recording's info is now set to the recording's name
Diffstat (limited to 'skins.c')
-rw-r--r--skins.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/skins.c b/skins.c
index 85741e9c..b7cc1be2 100644
--- a/skins.c
+++ b/skins.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skins.c 2.8 2012/05/12 11:27:23 kls Exp $
+ * $Id: skins.c 2.9 2012/05/20 13:49:24 kls Exp $
*/
#include "skins.h"
@@ -174,17 +174,7 @@ cSkinDisplayReplay::cSkinDisplayReplay(void)
void cSkinDisplayReplay::SetRecording(const cRecording *Recording)
{
- const char *Title = NULL;
- const char *ShortText = NULL;
- const cRecordingInfo *RecordingInfo = Recording->Info();
- if ((Title = RecordingInfo->Title()) != NULL)
- ShortText = RecordingInfo->ShortText();
- else
- Title = Recording->Name();
- if (ShortText)
- SetTitle(cString::sprintf("%s: %s", Title, ShortText));
- else
- SetTitle(Title);
+ SetTitle(Recording->Name());
}
void cSkinDisplayReplay::SetMarks(const cMarks *Marks)