summaryrefslogtreecommitdiff
path: root/themes.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-05-22 10:33:46 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-05-22 10:33:46 +0200
commitb8c26cd48268597800862a768cc34c60c41d1ffe (patch)
tree0bc31d5f6f41429ebb243bc7b7e4613e06791401 /themes.c
parent9b7c8ac102e514ebc351b3724274a45e88047fc1 (diff)
downloadvdr-b8c26cd48268597800862a768cc34c60c41d1ffe.tar.gz
vdr-b8c26cd48268597800862a768cc34c60c41d1ffe.tar.bz2
Fixed a crash when switching the skin and having selected a non-default theme that is not available for the newly selected skin
Diffstat (limited to 'themes.c')
-rw-r--r--themes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes.c b/themes.c
index 0232822e..1b6adf9d 100644
--- a/themes.c
+++ b/themes.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: themes.c 1.1 2004/05/16 09:43:14 kls Exp $
+ * $Id: themes.c 1.2 2004/05/22 10:30:06 kls Exp $
*/
#include "themes.h"
@@ -274,7 +274,7 @@ int cThemes::GetThemeIndex(const char *Description)
if (strcmp(descriptions[i], Description) == 0)
return i;
if (strcmp(descriptions[i], "Default") == 0)
- index = 1;
+ index = i;
}
return index;
}