summaryrefslogtreecommitdiff
path: root/libtemplate
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-09-28 10:47:54 +0200
committerlouis <louis.braun@gmx.de>2014-09-28 10:47:54 +0200
commit9488e28015e2dbb818819b2f466a2db6f5cc8e77 (patch)
treeaacb95d4d57fa249546a9f8339bb19072e765161 /libtemplate
parent073af3baa5eedba77530a3ebf83eb4bdf7417216 (diff)
downloadvdr-plugin-skindesigner-9488e28015e2dbb818819b2f466a2db6f5cc8e77.tar.gz
vdr-plugin-skindesigner-9488e28015e2dbb818819b2f466a2db6f5cc8e77.tar.bz2
fixed a bug that skindesigner is not shown after first selection
Diffstat (limited to 'libtemplate')
-rw-r--r--libtemplate/xmlparser.c7
1 files changed, 6 insertions, 1 deletions
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) {