From 43a4605eab32f83337f55c5a90bfc7f2fb84696c Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 14 Jan 2005 13:10:32 +0100 Subject: Making sure at least the default skin is available at program start --- skins.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'skins.c') diff --git a/skins.c b/skins.c index 5770bd4c..fb21ed38 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 1.3 2004/11/07 09:46:46 kls Exp $ + * $Id: skins.c 1.4 2005/01/14 13:07:19 kls Exp $ */ #include "skins.h" @@ -130,6 +130,7 @@ cSkin::cSkin(const char *Name, cTheme *Theme) if (theme) cThemes::Save(name, theme); Skins.Add(this); + Skins.SetCurrent(Name); } cSkin::~cSkin() @@ -172,6 +173,8 @@ eKeys cSkins::Message(eMessageType Type, const char *s, int Seconds) case mtError: esyslog("ERROR: %s", s); break; default: ; } + if (!Current()) + return kNone; if (!cSkinDisplay::Current() && !displayMessage) displayMessage = Current()->DisplayMessage(); cSkinDisplay::Current()->SetMessage(Type, s); -- cgit v1.2.3