fixed a bug that skindesigner is not shown after first selection

This commit is contained in:
louis
2014-09-28 10:47:54 +02:00
parent 073af3baa5
commit 9488e28015
5 changed files with 22 additions and 8 deletions

View File

@@ -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) {