diff options
Diffstat (limited to 'gui/ThemeParser.cpp')
-rw-r--r-- | gui/ThemeParser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp index f92676a383..b92dd334f3 100644 --- a/gui/ThemeParser.cpp +++ b/gui/ThemeParser.cpp @@ -721,7 +721,7 @@ bool ThemeParser::parserCallback_widget(ParserNode *node) { } bool ThemeParser::parserCallback_dialog(ParserNode *node) { - Common::String var = "Dialog." + node->values["name"]; + Common::String name = node->values["name"]; bool enabled = true; int inset = 0; @@ -740,7 +740,7 @@ bool ThemeParser::parserCallback_dialog(ParserNode *node) { return false; } - _theme->getEvaluator()->addDialog(var, node->values["overlays"], enabled, inset); + _theme->getEvaluator()->addDialog(name, node->values["overlays"], enabled, inset); if (node->values.contains("shading")) { int shading = 0; @@ -750,7 +750,7 @@ bool ThemeParser::parserCallback_dialog(ParserNode *node) { shading = 2; else return parserError("Invalid value for Dialog background shading."); - _theme->getEvaluator()->setVar(var + ".Shading", shading); + _theme->getEvaluator()->setVar("Dialog." + name + ".Shading", shading); } return true; |