summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-01-25 12:12:07 +0100
committerlouis <louis.braun@gmx.de>2015-01-25 12:12:07 +0100
commit61dbed981d6070c3e642f43b8aaf08309f1e779e (patch)
tree7552e796f123a2aae3b89ff148ee1c0b4996daef
parentf33d44eda968392c5c7e3a83cfe5ba3490ab9d84 (diff)
downloadvdr-plugin-skindesigner-61dbed981d6070c3e642f43b8aaf08309f1e779e.tar.gz
vdr-plugin-skindesigner-61dbed981d6070c3e642f43b8aaf08309f1e779e.tar.bz2
fixed bug that setup variables are sometimes not identified
-rw-r--r--HISTORY4
-rw-r--r--config.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index c0a2e81..7d2e37a 100644
--- a/HISTORY
+++ b/HISTORY
@@ -179,4 +179,6 @@ Version 0.1.6
- introduced globals.xml in skinpath, theme.xml in theme path. theme.xml
adds its vakues and potentially overrides valués from globals.xml
- check icons, menuicons and skinparts additionally directly in skin folder
- to allow default images which can be used for all skins. \ No newline at end of file
+ to allow default images which can be used for all skins
+- fixed bug that setup variables are sometimes not identified in case two
+ or more skin names start identically
diff --git a/config.c b/config.c
index 192f1e4..61ccb55 100644
--- a/config.c
+++ b/config.c
@@ -160,7 +160,9 @@ void cDesignerConfig::SetSkinSetupParameters(void) {
string activeSkin = "";
bool skinFound = false;
while (GetSkin(activeSkin)) {
- size_t hit = name.find(activeSkin);
+ stringstream checkString;
+ checkString << activeSkin << ".";
+ size_t hit = name.find(checkString.str());
if (hit != 0)
continue;
skinFound = true;