diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-14 13:10:32 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-14 13:10:32 +0100 |
commit | 43a4605eab32f83337f55c5a90bfc7f2fb84696c (patch) | |
tree | 584adda353dca785f6933ee9fe47c2ed5e4ce3f3 /skins.c | |
parent | fbb4283bba26264e73c2d4f76d1dfe0baa4098e7 (diff) | |
download | vdr-43a4605eab32f83337f55c5a90bfc7f2fb84696c.tar.gz vdr-43a4605eab32f83337f55c5a90bfc7f2fb84696c.tar.bz2 |
Making sure at least the default skin is available at program start
Diffstat (limited to 'skins.c')
-rw-r--r-- | skins.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |