From 9488e28015e2dbb818819b2f466a2db6f5cc8e77 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 28 Sep 2014 10:47:54 +0200 Subject: fixed a bug that skindesigner is not shown after first selection --- libtemplate/xmlparser.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libtemplate/xmlparser.c') diff --git a/libtemplate/xmlparser.c b/libtemplate/xmlparser.c index f9a723a..228488b 100644 --- a/libtemplate/xmlparser.c +++ b/libtemplate/xmlparser.c @@ -176,7 +176,12 @@ void cXmlParser::DeleteDocument(void) { *********************************************************************/ string cXmlParser::GetPath(string xmlFile) { - return *cString::sprintf("%s%s/xmlfiles/%s", *config.skinPath, Setup.OSDTheme, xmlFile.c_str()); + string activeSkin = Setup.OSDSkin; + string theme = "default"; + if (!activeSkin.compare("skindesigner")) { + theme = Setup.OSDTheme; + } + return *cString::sprintf("%s%s/xmlfiles/%s", *config.skinPath, theme.c_str(), xmlFile.c_str()); } void cXmlParser::ParseGlobalColors(xmlNodePtr node) { -- cgit v1.2.3